int may be smaller than 32 bits.

This commit is contained in:
Bodo Möller
2000-06-05 13:50:57 +00:00
parent b368eddd04
commit 849c0e3046
2 changed files with 10 additions and 10 deletions

View File

@@ -258,8 +258,8 @@ static int traverse_string(const unsigned char *p, int len, int inform,
value |= *p++;
len -= 2;
} else if(inform == MBSTRING_UNIV) {
value = *p++ << 24;
value |= *p++ << 16;
value = ((unsigned long)*p++) << 24;
value |= ((unsigned long)*p++) << 16;
value |= *p++ << 8;
value |= *p++;
len -= 4;