summaryrefslogtreecommitdiff
path: root/examples/api/strings-new.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/api/strings-new.cpp')
-rw-r--r--examples/api/strings-new.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/api/strings-new.cpp b/examples/api/strings-new.cpp
index 2010c6909..c88ccc9c0 100644
--- a/examples/api/strings-new.cpp
+++ b/examples/api/strings-new.cpp
@@ -57,7 +57,7 @@ int main()
// Length of y: |y|
Term leny = slv.mkTerm(STRING_LENGTH, y);
// |y| >= 0
- Term formula2 = slv.mkTerm(GEQ, leny, slv.mkInteger(0));
+ Term formula2 = slv.mkTerm(GEQ, leny, slv.mkReal(0));
// Regular expression: (ab[c-e]*f)|g|h
Term r = slv.mkTerm(REGEXP_UNION,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback