projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21439d9
)
Fix type for Windows build (#5062)
author
Andres Noetzli
<andres.noetzli@gmail.com>
Mon, 14 Sep 2020 15:15:31 +0000
(08:15 -0700)
committer
GitHub
<noreply@github.com>
Mon, 14 Sep 2020 15:15:31 +0000
(10:15 -0500)
The BVToInt preprocessing pass was using uint, which appears to be
undefined when we cross-compile for Windows. This commit fixes the issue
by using size_t.
src/preprocessing/passes/bv_to_int.cpp
patch
|
blob
|
history
diff --git
a/src/preprocessing/passes/bv_to_int.cpp
b/src/preprocessing/passes/bv_to_int.cpp
index c219deefe2d4a484297a9fd67a0b21fd3bde642b..65703e40c00960a5db03e5ab83fc23f682b08c3f 100644
(file)
--- a/
src/preprocessing/passes/bv_to_int.cpp
+++ b/
src/preprocessing/passes/bv_to_int.cpp
@@
-877,7
+877,7
@@
Node BVToInt::reconstructNode(Node originalNode,
{
builder << originalNode.getOperator();
}
- for (
uin
t i = 0; i < originalNode.getNumChildren(); i++)
+ for (
size_
t i = 0; i < originalNode.getNumChildren(); i++)
{
Node originalChild = originalNode[i];
Node translatedChild = translated_children[i];