CString("")[0] is illegal
This commit is contained in:
@@ -64,7 +64,7 @@ int power_of_two(int input)
|
|||||||
|
|
||||||
bool IsAnInt( const CString &s )
|
bool IsAnInt( const CString &s )
|
||||||
{
|
{
|
||||||
if( s[0] == '\0' )
|
if( !s.size() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for( int i=0; s[i]; i++ )
|
for( int i=0; s[i]; i++ )
|
||||||
|
|||||||
Reference in New Issue
Block a user