From 623e5e8eddc42ee4e3cff7c418dc2d3d4e96193f Mon Sep 17 00:00:00 2001 From: jsm Date: Sat, 18 Sep 1999 19:38:46 +0000 Subject: Fix -Wsign-compare warnings. --- fortune/strfile/strfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fortune/strfile/strfile.c') diff --git a/fortune/strfile/strfile.c b/fortune/strfile/strfile.c index 5c8954e1..f8ff4a2f 100644 --- a/fortune/strfile/strfile.c +++ b/fortune/strfile/strfile.c @@ -1,4 +1,4 @@ -/* $NetBSD: strfile.c,v 1.13 1999/09/10 00:18:21 jsm Exp $ */ +/* $NetBSD: strfile.c,v 1.14 1999/09/18 19:38:50 jsm Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: strfile.c,v 1.13 1999/09/10 00:18:21 jsm Exp $"); +__RCSID("$NetBSD: strfile.c,v 1.14 1999/09/18 19:38:50 jsm Exp $"); #endif #endif /* not lint */ @@ -198,9 +198,9 @@ main(ac, av) if (!length) continue; add_offset(outf, pos); - if (Tbl.str_longlen < length) + if ((off_t)Tbl.str_longlen < length) Tbl.str_longlen = length; - if (Tbl.str_shortlen > length) + if ((off_t)Tbl.str_shortlen > length) Tbl.str_shortlen = length; first = Oflag; } -- cgit v1.2.3