fixed get_processor_arch comparisons

This commit is contained in:
Hadis Kakanejadi Fard 2017-01-30 13:11:11 -08:00
parent 1fc3243eb5
commit 66fa134f17

View file

@ -655,11 +655,11 @@ const char* get_processor_arch( void )
{
DIE( "Error retrieving system info" );
}
if( strcmp(sys_info.machine, "x86") ) {
if( strcmp(sys_info.machine, "x86") == 0 ) {
return PROCESSOR_ARCH[0];
} else if ( strcmp(sys_info.machine, "x86_64") ) {
} else if ( strcmp(sys_info.machine, "x86_64") == 0) {
return PROCESSOR_ARCH[1];
} else if ( strcmp(sys_info.machine, "ia64") ) {
} else if ( strcmp(sys_info.machine, "ia64") == 0 ) {
return PROCESSOR_ARCH[2];
} else {
DIE( "Unknown processor architecture." );