--- parser3/src/classes/math.C 2003/11/20 17:46:01 1.37 +++ parser3/src/classes/math.C 2005/08/09 08:14:48 1.40 @@ -1,14 +1,14 @@ /** @file Parser: @b math parser class. - Copyright(c) 2001-2003 ArtLebedev Group(http://www.artlebedev.com) + Copyright(c) 2001-2005 ArtLebedev Group(http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) portions from gen_uuid.c, Copyright (C) 1996, 1997, 1998, 1999 Theodore Ts'o. */ -static const char * const IDENT_MATH_C="$Date: 2003/11/20 17:46:01 $"; +static const char * const IDENT_MATH_C="$Date: 2005/08/09 08:14:48 $"; #include "pa_vmethod_frame.h" #include "pa_common.h" @@ -228,9 +228,9 @@ inline bool is_salt_body_char(int c) { } static size_t calc_prefix_size(const char* salt) { if(strlen(salt)) { - if(!is_salt_body_char(salt[0])) { // $... {... + if(!is_salt_body_char((unsigned char)salt[0])) { // $... {... const char* cur=salt+1; // skip - while(is_salt_body_char(*cur++)) // ...$ ...} + while(is_salt_body_char((unsigned char)*cur++)) // ...$ ...} ; return cur-salt; } else