author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 5 Nov 2006 07:27:07 +0000 (02:27 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 5 Nov 2006 07:41:02 +0000 (23:41 -0800) | ||
commit | bf8675d314ffb0289779a954fdf6ae22f3322d0d | |
tree | 6b994523a9df96e7d0fb2aa00c9d68737bcbb8f2 | tree | snapshot |
parent | 6f9f3b263b1c86889d6fae0d50c75be0f3227003 | commit | diff |
Use ULONG_MAX rather than implicit cast of -1.
At least one (older) version of the Solaris C compiler won't allow
'unsigned long x = -1' without explicitly casting -1 to a type of
unsigned long. So instead use ULONG_MAX, which is really the
correct constant anyway.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
At least one (older) version of the Solaris C compiler won't allow
'unsigned long x = -1' without explicitly casting -1 to a type of
unsigned long. So instead use ULONG_MAX, which is really the
correct constant anyway.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c | diff | blob | history |