From ac821942d3d9bdc81522f50f4e2a8b61bb9cfe38 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Wed, 9 Jul 2008 23:21:57 +0200 Subject: [PATCH] More signed p_wchar2 fixes. Rev: src/sscanf.c:1.189 --- src/sscanf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sscanf.c b/src/sscanf.c index 9a3cd0b1c2..4373ae1d91 100644 --- a/src/sscanf.c +++ b/src/sscanf.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: sscanf.c,v 1.188 2008/07/09 21:07:12 mast Exp $ +|| $Id: sscanf.c,v 1.189 2008/07/09 21:21:57 mast Exp $ */ #include "global.h" @@ -772,7 +772,7 @@ INPUT_IS_WIDE( \ INPUT_IS_WIDE( \ for(e=0;e<field_length;e++) \ { \ - if(input[eye+e]>255) \ + if((unsigned INT32) input[eye+e] > 255) \ { \ chars_matched[0]=eye; \ return matches; \ @@ -860,7 +860,7 @@ INPUT_IS_WIDE( \ INPUT_IS_WIDE ( \ for(e=0;e<field_length;e++) \ { \ - if(input[eye+e]>255) \ + if((unsigned INT32) input[eye+e] > 255) \ { \ chars_matched[0]=eye; \ return matches; \ -- GitLab