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

(cherry picked from commit 2759890)
  • Loading branch information
bogdan-iancu authored and razvancrainea committed Oct 30, 2014
1 parent c99a62b commit fd186a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ut.h
Expand Up @@ -260,7 +260,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 fd186a2

Please sign in to comment.