diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2013-08-28 14:00:36 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2013-08-28 14:00:36 +0100 |
commit | c7874f2ad92a9f26430038f7a9426dec1fe632ea (patch) | |
tree | 36f8ee7e39294978134d70ef5f8384380a14cde2 /lib/Solver/STPBuilder.cpp | |
parent | 821b6f6473334eaa6c78205603faf14a2c1aca41 (diff) | |
parent | 6c445f2b1a1f91ffb301bece325dd5a491922ce1 (diff) | |
download | klee-c7874f2ad92a9f26430038f7a9426dec1fe632ea.tar.gz |
Merge branch 'CompilerWarnings' of https://github.com/MartinNowack/klee into MartinNowack-CompilerWarnings
Diffstat (limited to 'lib/Solver/STPBuilder.cpp')
-rw-r--r-- | lib/Solver/STPBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Solver/STPBuilder.cpp b/lib/Solver/STPBuilder.cpp index 789eb244..90252656 100644 --- a/lib/Solver/STPBuilder.cpp +++ b/lib/Solver/STPBuilder.cpp @@ -435,7 +435,7 @@ ExprHandle STPBuilder::constructSDivByConstant(ExprHandle expr_n, unsigned width // STP uniques arrays by name, so we make sure the name is unique by // including the address. char buf[32]; - unsigned const addrlen = sprintf(buf, "_%p", (void*)root) + 1; // +1 for null-termination + unsigned const addrlen = sprintf(buf, "_%p", (const void*)root) + 1; // +1 for null-termination unsigned const space = (root->name.length() > 32 - addrlen)?(32 - addrlen):root->name.length(); memmove(buf + space, buf, addrlen); // moving the address part to the end memcpy(buf, root->name.c_str(), space); // filling out the name part |