diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-05-23 06:44:59 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-05-23 06:44:59 +0000 |
commit | 8459723298b06d5eacc8fef95784036326fd4614 (patch) | |
tree | ad61ec830a28bfc7705a93738a77365fa1283116 /usr.bin/bc/bc.y | |
parent | 4232fb2ca36282ada7d0d32c87d35ab9ec972ecb (diff) |
Fix some pedantic signed vs unsigned warnings. From Michael Knudsen, 10x
Diffstat (limited to 'usr.bin/bc/bc.y')
-rw-r--r-- | usr.bin/bc/bc.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y index e3f88b15685..aff24ca1b4d 100644 --- a/usr.bin/bc/bc.y +++ b/usr.bin/bc/bc.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: bc.y,v 1.25 2005/03/17 16:59:31 otto Exp $ */ +/* $OpenBSD: bc.y,v 1.26 2005/05/23 06:44:58 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -31,7 +31,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: bc.y,v 1.25 2005/03/17 16:59:31 otto Exp $"; +static const char rcsid[] = "$OpenBSD: bc.y,v 1.26 2005/05/23 06:44:58 otto Exp $"; #endif /* not lint */ #include <ctype.h> @@ -88,7 +88,7 @@ static void init(void); static __dead void usage(void); static char *escape(const char *); -static size_t instr_sz = 0; +static ssize_t instr_sz = 0; static struct tree *instructions = NULL; static ssize_t current = 0; static int macro_char = '0'; @@ -739,7 +739,7 @@ static void grow(void) { struct tree *p; - int newsize; + size_t newsize; if (current == instr_sz) { newsize = instr_sz * 2 + 1; @@ -817,7 +817,7 @@ emit_macro(int node, ssize_t code) static void free_tree(void) { - size_t i; + ssize_t i; for (i = 0; i < current; i++) if (instructions[i].index == ALLOC_STRING) |