From b37692f881dae1acc9690dd3df389cbd7edd0705 Mon Sep 17 00:00:00 2001 From: millert Date: Sat, 12 Apr 1997 18:22:22 +0000 Subject: long -> int to fix 64bit issues. This breaks 16bit machines but since we don't have any 16bit ports...) The alternative is to use int32_t's but then this code will break when/if int > 32bits which is not so unlikely. Fixes NetBSD PR #3450 from Ross Harvey (but in a different way) --- lib/libc/regex/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/regex/engine.c') diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index b9791be3687..969d530f6df 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -36,7 +36,7 @@ */ #if defined(SNAMES) && defined(LIBC_SCCS) && !defined(lint) -static char enginercsid[] = "$OpenBSD: engine.c,v 1.2 1996/08/19 08:31:06 tholo Exp $"; +static char enginercsid[] = "$OpenBSD: engine.c,v 1.3 1997/04/12 18:22:22 millert Exp $"; #endif /* SNAMES and LIBC_SCCS and not lint */ /* @@ -1051,7 +1051,7 @@ sopno stopst; printf("%s %s-", title, pchar(*start)); printf("%s ", pchar(*stop)); - printf("%ld-%ld\n", (long)startst, (long)stopst); + printf("%d-%d\n", startst, stopst); } #ifndef PCHARDONE -- cgit v1.2.3-59-g8ed1b