Skip to content

Commit

Permalink
Fix bogus unsigned to signed int conversion.
Browse files Browse the repository at this point in the history
This leads to failures of computing VIA branches when hash label is higer than 2^31
  • Loading branch information
bogdan-iancu committed Oct 21, 2014
1 parent 290a771 commit 2759890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ut.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ inline static int reverse_hex2int( char *c, int len )
return r;
}

inline static int int2reverse_hex( char **c, int *size, int nr )
inline static int int2reverse_hex( char **c, int *size, unsigned int nr )
{
unsigned short digit;

Expand Down

0 comments on commit 2759890

Please sign in to comment.