Revision: 55687
http://sourceforge.net/p/brlcad/code/55687
Author: carlmoore
Date: 2013-06-07 14:34:50 +0000 (Fri, 07 Jun 2013)
Log Message:
-----------
set scale=1.0 in the declaration, not in a separate statement
Modified Paths:
--------------
brlcad/trunk/src/sig/f-i.c
brlcad/trunk/src/sig/i-f.c
Modified: brlcad/trunk/src/sig/f-i.c
===================================================================
--- brlcad/trunk/src/sig/f-i.c 2013-06-06 22:01:06 UTC (rev 55686)
+++ brlcad/trunk/src/sig/f-i.c 2013-06-07 14:34:50 UTC (rev 55687)
@@ -46,13 +46,11 @@
int main(int argc, char **argv)
{
int i, num;
- double scale;
+ double scale = 1.0;
double value;
int clip_high, clip_low;
size_t ret;
- scale = 1.0;
-
if (argc > 1) {
if (BU_STR_EQUAL(argv[1], "-n"))
scale = 32767.0;
Modified: brlcad/trunk/src/sig/i-f.c
===================================================================
--- brlcad/trunk/src/sig/i-f.c 2013-06-06 22:01:06 UTC (rev 55686)
+++ brlcad/trunk/src/sig/i-f.c 2013-06-07 14:34:50 UTC (rev 55687)
@@ -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;
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