Fixed BlockStringToType return value.
-1 was not a valid BLOCKTYPE and would not be recognized by the callers, ever.
This commit is contained in:
@@ -200,7 +200,7 @@ public:
|
||||
|
||||
|
||||
|
||||
BLOCKTYPE BlockStringToType(const AString & a_BlockTypeString)
|
||||
int BlockStringToType(const AString & a_BlockTypeString)
|
||||
{
|
||||
int res = atoi(a_BlockTypeString.c_str());
|
||||
if ((res != 0) || (a_BlockTypeString.compare("0") == 0))
|
||||
|
||||
Reference in New Issue
Block a user