From d7c13fb2c3b1b014acde9c1cb17a1e34239b9751 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 18 Feb 2005 13:57:25 +0000 Subject: 20822: Initial code for Unicode/multibyte input 20823: Debugging test in stat wrong for 64-bit systems --- Src/Modules/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Modules') diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c index 29a4099d6..9f3d4a6de 100644 --- a/Src/Modules/stat.c +++ b/Src/Modules/stat.c @@ -239,7 +239,7 @@ statprint(struct stat *sbuf, char *outbuf, char *fname, int iwhich, int flags) #ifdef INO_T_IS_64_BIT convbase(optr, sbuf->st_ino, 0); #else - DPUTS(sizeof(sbuf->st_ino) > 4, + DPUTS(sizeof(sbuf->st_ino) > sizeof(unsigned long), "Shell compiled with wrong ino_t size"); statulprint((unsigned long)sbuf->st_ino, optr); #endif @@ -269,7 +269,7 @@ statprint(struct stat *sbuf, char *outbuf, char *fname, int iwhich, int flags) #ifdef OFF_T_IS_64_BIT convbase(optr, sbuf->st_size, 0); #else - DPUTS(sizeof(sbuf->st_size) > 4, + DPUTS(sizeof(sbuf->st_size) > sizeof(unsigned long), "Shell compiled with wrong off_t size"); statulprint((unsigned long)sbuf->st_size, optr); #endif -- cgit 1.4.1