summaryrefslogtreecommitdiff
path: root/builtin-apply.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-05 07:27:07 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-05 07:41:02 (GMT)
commitbf8675d314ffb0289779a954fdf6ae22f3322d0d (patch)
tree6b994523a9df96e7d0fb2aa00c9d68737bcbb8f2 /builtin-apply.c
parent6f9f3b263b1c86889d6fae0d50c75be0f3227003 (diff)
downloadgit-bf8675d314ffb0289779a954fdf6ae22f3322d0d.zip
git-bf8675d314ffb0289779a954fdf6ae22f3322d0d.tar.gz
git-bf8675d314ffb0289779a954fdf6ae22f3322d0d.tar.bz2
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>
Diffstat (limited to 'builtin-apply.c')
-rw-r--r--builtin-apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-apply.c b/builtin-apply.c
index f70ee98..6ec22b8 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=<nowarn|warn|error|error-all|strip>] <patch>...";