Make warning limit valid for both i386 and x86_64

This commit is contained in:
Charles Crayne 2007-11-04 15:28:30 -08:00
parent 7e97555f1c
commit dd462c8f44

View File

@ -152,7 +152,7 @@ static const char *size_name(int size)
static void warn_overflow(int size, int64_t data)
{
if (size < 8) {
int64_t lim = (1l << (size*8))-1;
int64_t lim = ((int64_t)1 << (size*8))-1;
if (data < ~lim || data > lim)
errfunc(ERR_WARNING, "%s data exceeds bounds", size_name(size));