--- parser3/src/main/pa_table.C 2001/09/06 14:55:06 1.36 +++ parser3/src/main/pa_table.C 2001/09/26 10:32:26 1.38 @@ -2,10 +2,10 @@ Parser: table class. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + + $Id: pa_table.C,v 1.38 2001/09/26 10:32:26 parser Exp $ */ -static const char *RCSId="$Id: pa_table.C,v 1.36 2001/09/06 14:55:06 parser Exp $"; #include @@ -43,8 +43,8 @@ int Table::column_name2index(const Strin char *error_pos; const char *cstr=column_name.cstr(); int result=(int)strtol(cstr, &error_pos, 0); - if(error_pos==cstr/*empty*/ || *error_pos/*not eos*/) { - result=-1; // calm, compiler + if(*error_pos/*not EOS*/) { + result=-1; if(bark) THROW(0, 0, &column_name,