diff --git a/irdb-libs/ir_builders/fill_in_indtargs.cpp b/irdb-libs/ir_builders/fill_in_indtargs.cpp
index 1fa973a40f44f4d5254b8d6c401609923b888d19..1c10d9243813b7cfefcfd392ce3609ea8317c958 100644
--- a/irdb-libs/ir_builders/fill_in_indtargs.cpp
+++ b/irdb-libs/ir_builders/fill_in_indtargs.cpp
@@ -2483,7 +2483,7 @@ V2:
 		auto cmp_str = string(" do not match anything ");	   // to be updated inside if statement below
 		auto bound_stopif = string(" do not match anything "); // to be updated inside if statement below
 		auto and_str = string(" do not match anything ");	   // to be updated inside if statement below
-        uint32_t index_reg_no = -1;  // to be updated inside if statement below
+        int32_t index_reg_no = -1;  // to be updated inside if statement below
 
 		if (d6_op1_is_mem)
 		{
@@ -2670,7 +2670,7 @@ V2:
 		const string &p_bound_stopif,
 		const string &p_and_str,
 		const bool allow_unpins,
-        const uint32_t index_reg_no)
+		const int32_t index_reg_no)
 	{
         // Copy the strings for potential replace later on
         string cmp_str = p_cmp_str;