Skip to content

Commit 45d7b9b

Browse files
committed
unsigned is sufficient here
1 parent c4206e2 commit 45d7b9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansi-c/string_constant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ bool string_constantt::from_array_expr(const array_exprt &src)
148148
{
149149
mp_integer int_value=0;
150150
if(to_integer(*it, int_value)) return true;
151-
unsigned long unsigned_long_value=integer2ulong(int_value);
152-
value+=(char)unsigned_long_value;
151+
unsigned unsigned_value=integer2unsigned(int_value);
152+
value+=(char)unsigned_value;
153153
}
154154

155155
// Drop the implicit zero at the end.

0 commit comments

Comments
 (0)