Fix type for Windows build (#5062)
authorAndres Noetzli <andres.noetzli@gmail.com>
Mon, 14 Sep 2020 15:15:31 +0000 (08:15 -0700)
committerGitHub <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

index c219deefe2d4a484297a9fd67a0b21fd3bde642b..65703e40c00960a5db03e5ab83fc23f682b08c3f 100644 (file)
@@ -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];