Revision: 55694
http://sourceforge.net/p/brlcad/code/55694
Author: carlmoore
Date: 2013-06-07 18:14:36 +0000 (Fri, 07 Jun 2013)
Log Message:
-----------
add a blank line (cosmetic comparison with d-i.c) and initialize scale in the
type statement
Modified Paths:
--------------
brlcad/trunk/src/sig/i-d.c
Modified: brlcad/trunk/src/sig/i-d.c
===================================================================
--- brlcad/trunk/src/sig/i-d.c 2013-06-07 17:00:43 UTC (rev 55693)
+++ brlcad/trunk/src/sig/i-d.c 2013-06-07 18:14:36 UTC (rev 55694)
@@ -45,11 +45,9 @@
int main(int argc, char **argv)
{
int i, num;
- double scale;
+ double scale = 1.0;
size_t ret;
- scale = 1.0;
-
if (argc > 1) {
if (BU_STR_EQUAL(argv[1], "-n"))
scale = 1.0 / 32768.0;
@@ -70,6 +68,7 @@
for (i = 0; i < num; i++)
obuf[i] = (double)ibuf[i] * scale;
}
+
ret = fwrite(&obuf[0], sizeof(obuf[0]), num, stdout);
if (ret != (size_t)num)
perror("fwrite");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits