lkml.org 
[lkml]   [2005]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86_64: use UL on TASK_SIZE
On Sat, Jan 22, 2005 at 10:56:17PM -0800, Randy.Dunlap wrote:
>
> Use UL on large constant (kills 3214 sparse warnings :)
>
> include/linux/sched.h:1150:18: warning: constant 0x800000000000 is so big it is long

Sounds more like a sparse bug to me. The C99 standard says the type
of the constant is the first in which the constant can be represented.
And that list includes unsigned long and even unsigned long long.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.033 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site