From 8459723298b06d5eacc8fef95784036326fd4614 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 23 May 2005 06:44:59 +0000 Subject: Fix some pedantic signed vs unsigned warnings. From Michael Knudsen, 10x --- usr.bin/bc/bc.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/bc/bc.y') 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 @@ -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 @@ -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) -- cgit v1.2.3