From 0575bf9e482c7f50f616ee69a70004c46d4fac26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 10 Aug 2000 17:02:07 +0200 Subject: [PATCH] Fixed a few warnings. Rev: src/cpp.c:1.74 Rev: src/preprocessor.h:1.32 --- src/cpp.c | 5 +++-- src/preprocessor.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cpp.c b/src/cpp.c index 6b804d952e..accb057912 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -5,7 +5,7 @@ \*/ /* - * $Id: cpp.c,v 1.73 2000/08/10 08:52:09 grubba Exp $ + * $Id: cpp.c,v 1.74 2000/08/10 15:02:07 grubba Exp $ */ #include "global.h" #include "stralloc.h" @@ -986,7 +986,8 @@ static void check_constant(struct cpp *this, struct svalue *save_stack=sp; struct svalue *sv; PCHARP data=args[0].arg; - int res,dlen,len=args[0].len; + int res; + ptrdiff_t dlen,len=args[0].len; struct pike_string *s; int c; diff --git a/src/preprocessor.h b/src/preprocessor.h index 1cafa2d265..37a929c1d7 100644 --- a/src/preprocessor.h +++ b/src/preprocessor.h @@ -1,5 +1,5 @@ /* - * $Id: preprocessor.h,v 1.31 2000/08/10 15:00:20 grubba Exp $ + * $Id: preprocessor.h,v 1.32 2000/08/10 15:01:01 grubba Exp $ * * Preprocessor template. * Based on cpp.c 1.45 @@ -1879,7 +1879,7 @@ static ptrdiff_t lower_cpp(struct cpp *this, /* NOTE: Reuses undefine_ for undef_ */ if(WGOBBLE2(undefine_) || WGOBBLE2(undef_)) { - INT32 tmp; + ptrdiff_t tmp; struct pike_string *s; SKIPSPACE(); -- GitLab