Skip to content

Commit

Permalink
Update valarith.c
Browse files Browse the repository at this point in the history
I think I'd prefer to use `size_t`, actually
  • Loading branch information
cooljeanius authored Sep 26, 2024
1 parent a4546f0 commit 7f8999c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdb/valarith.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ value_concat (struct value *arg1, struct value *arg2)
{
count = longest_to_int (value_as_long (inval1));
inval2len = TYPE_LENGTH (type2);
ptr = (char *) alloca ((unsigned long)count * inval2len);
ptr = (char *)alloca((size_t)count * inval2len);
if (TYPE_CODE (type2) == TYPE_CODE_CHAR)
{
inchar = (char) unpack_long (type2,
Expand Down

0 comments on commit 7f8999c

Please sign in to comment.