From: Shawn O. Pearce Date: Sun, 5 Nov 2006 07:27:07 +0000 (-0500) Subject: Use ULONG_MAX rather than implicit cast of -1. X-Git-Tag: v1.4.3.4~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf8675d314ffb0289779a954fdf6ae22f3322d0d;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-apply.c b/builtin-apply.c index f70ee98e2..6ec22b8da 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -43,7 +43,7 @@ static int apply_verbosely; static int no_add; static int show_index_info; static int line_termination = '\n'; -static unsigned long p_context = -1; +static unsigned long p_context = ULONG_MAX; static const char apply_usage[] = "git-apply [--stat] [--numstat] [--summary] [--check] [--index] [--cached] [--apply] [--no-add] [--index-info] [--allow-binary-replacement] [--reverse] [--reject] [--verbose] [-z] [-pNUM] [-CNUM] [--whitespace=] ...";