summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-09-14 08:15:31 -0700
committerGitHub <noreply@github.com>2020-09-14 10:15:31 -0500
commitc82d061abb0c011da2700051b7a0548f5d59904b (patch)
tree16e001492ec264cf08eaedf72d07927324b12147
parent21439d98e9afe1541bb0f5371c4ab0011666bd5e (diff)
Fix type for Windows build (#5062)
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.
-rw-r--r--src/preprocessing/passes/bv_to_int.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preprocessing/passes/bv_to_int.cpp b/src/preprocessing/passes/bv_to_int.cpp
index c219deefe..65703e40c 100644
--- 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 (uint i = 0; i < originalNode.getNumChildren(); i++)
+ for (size_t i = 0; i < originalNode.getNumChildren(); i++)
{
Node originalChild = originalNode[i];
Node translatedChild = translated_children[i];
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback