Revision: 65247
http://sourceforge.net/p/brlcad/code/65247
Author: n_reed
Date: 2015-06-10 17:55:46 +0000 (Wed, 10 Jun 2015)
Log Message:
-----------
correct func return to address error 'control reaches end of non-void function'
Modified Paths:
--------------
brlcad/trunk/src/util/bwmod.c
Modified: brlcad/trunk/src/util/bwmod.c
===================================================================
--- brlcad/trunk/src/util/bwmod.c 2015-06-10 17:28:54 UTC (rev 65246)
+++ brlcad/trunk/src/util/bwmod.c 2015-06-10 17:55:46 UTC (rev 65247)
@@ -78,10 +78,12 @@
int mapbuf[MAPBUFLEN]; /* translation buffer/lookup table */
int char_arith = 0;
-int
+void
checkpow(double x , double exponent)
{
- if (x > 0.0) return 1;
+ if (x > 0.0)
+ return;
+
if (x < 0.0) {
double diff;
diff = exponent - (double)((int)exponent);
@@ -90,10 +92,11 @@
x,exponent);
bu_exit (-1, NULL);
}
- return 1;
}
/* We have x == 0.0, and we accept that 0 to 0 power is 1. */
- if (exponent >= 0.0) return 1;
+ if (exponent >= 0.0)
+ return;
+
fprintf(stderr,"bwmod: zero to negative power (%f)\n",exponent);
bu_exit (-1, NULL);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits