From c62d5791ae244707bd967eb3891aff97aaf3a0bd Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 13 Dec 2008 18:32:27 +0000 Subject: [PATCH] fix signedness issue wrecking havoc on 64 bit architectures, oops --- sh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh.h b/sh.h index 067f2fb..c7f3ba2 100644 --- a/sh.h +++ b/sh.h @@ -103,7 +103,7 @@ #define __SCCSID(x) __IDSTRING(sccsid,x) #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.266 2008/12/13 17:02:16 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.267 2008/12/13 18:32:27 tg Exp $"); #endif #define MKSH_VERSION "R36 2008/12/13" @@ -1089,7 +1089,7 @@ typedef char *XStringP; /* check if there are at least n bytes left */ #define XcheckN(xs, xp, n) do { \ - size_t more = ((xp) + (n)) - (xs).end; \ + int more = ((xp) + (n)) - (xs).end; \ if (more > 0) \ (xp) = Xcheck_grow_(&(xs), (xp), more); \ } while (/* CONSTCOND */ 0)