]> andersk Git - splint.git/blobdiff - src/multiVal.c
Relaxed grammar to allow null external declarations.
[splint.git] / src / multiVal.c
index ef454c05d71ab732fc61adcdf5f7b06f5bf26cb1..5b9a2b0a8238c9ef9317796ddb7174edda5be57c 100644 (file)
@@ -361,7 +361,7 @@ multiVal multiVal_divide (multiVal m1, multiVal m2)
          return multiVal_undefined;
        }
     case MVCHAR:   
-      if (m2->value.cval != 0)
+      if (m2->value.cval != (char) 0)
        {
          return (multiVal_makeChar ((char) (m1->value.cval / m2->value.cval)));
        }
@@ -370,14 +370,7 @@ multiVal multiVal_divide (multiVal m1, multiVal m2)
          return multiVal_undefined;
        }
     case MVDOUBLE:
-      if (m2->value.fval != 0.0)
-       {
-         return (multiVal_makeDouble (m1->value.fval / m2->value.fval));
-       }
-      else
-       {
-         return multiVal_undefined;
-       }
+      return multiVal_undefined; /* Don't attempt to divide floats */
     case MVSTRING: return multiVal_undefined;
     }
 
This page took 0.073041 seconds and 4 git commands to generate.