]> andersk Git - splint.git/blobdiff - src/constraintTerm.c
Changes to fix malloc size problem.
[splint.git] / src / constraintTerm.c
index 57172a52d34342d26faca41fed11ad7012fdc1ad..60fe0518203c0436ee6501e5500369bffb97c6b7 100644 (file)
@@ -386,6 +386,18 @@ bool constraintTerm_canGetValue (constraintTerm term)
     }
 }
 
+void constraintTerm_setValue (constraintTerm term, long value) 
+{
+  if (term->kind == CTT_INTLITERAL)
+    {
+      term->value.intlit = value;
+    }
+  else
+    {
+      BADBRANCH;
+    }
+}
+
 long constraintTerm_getValue (constraintTerm term) 
 {
   llassert (constraintTerm_canGetValue (term));
This page took 0.026601 seconds and 4 git commands to generate.