]> andersk Git - splint.git/blobdiff - src/multiVal.c
Fixed problem with shadow parameters.
[splint.git] / src / multiVal.c
index 96e79db571d9c2752e876f0147f726e8928e9710..b2bee5816f02408feed67bc6a92c6834f8ac3877 100644 (file)
@@ -130,9 +130,12 @@ multiVal multiVal_invert (multiVal m)
 
 long multiVal_forceInt (multiVal m)
 {
-  llassert (multiVal_isInt (m));
-
-  return m->value.ival;
+  if (multiVal_isInt (m)) {
+    return m->value.ival;
+  } else {
+    llcontbug (message ("Multival is not int: %s", multiVal_unparse (m)));
+    return 0;
+  }
 }
 
 char multiVal_forceChar (multiVal m)
This page took 0.0566 seconds and 4 git commands to generate.