--- parser3/src/main/pa_string.C 2001/09/06 14:55:06 1.102 +++ parser3/src/main/pa_string.C 2001/09/26 10:32:26 1.104 @@ -2,10 +2,10 @@ Parser: string class. @see untasize_t.C. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + + $Id: pa_string.C,v 1.104 2001/09/26 10:32:26 parser Exp $ */ -static const char *RCSId="$Id: pa_string.C,v 1.102 2001/09/06 14:55:06 parser Exp $"; #include "pa_config_includes.h" @@ -712,7 +712,7 @@ double String::as_double() const { else result=(double)strtod(cstr, &error_pos); - if(error_pos==cstr/*empty*/ || *error_pos/*not eos*/) + if(*error_pos/*not EOS*/) THROW(0, 0, this, "invalid number (double)"); @@ -732,7 +732,7 @@ int String::as_int() const { else result=(int)strtol(cstr, &error_pos, 0); - if(error_pos==cstr/*empty*/ || *error_pos/*not eos*/) + if(*error_pos/*not EOS*/) THROW(0, 0, this, "invalid number (int)");