diff --git a/neo/renderer/Image_files.cpp b/neo/renderer/Image_files.cpp index 4083e470..bf90f60c 100644 --- a/neo/renderer/Image_files.cpp +++ b/neo/renderer/Image_files.cpp @@ -643,7 +643,7 @@ extern "C" pngPtr->io_ptr = ( ( byte* ) pngPtr->io_ptr ) + length; #else // There is a get_io_ptr but not a set_io_ptr.. Therefore we need some tmp storage here. - byte **ioptr = (byte **)png_get_io_ptr(pngPtr); + byte** ioptr = ( byte** )png_get_io_ptr( pngPtr ); memcpy( data, *ioptr, length ); *ioptr += length; #endif @@ -794,7 +794,7 @@ extern "C" memcpy( ( byte* )pngPtr->io_ptr, data, length ); pngPtr->io_ptr = ( ( byte* ) pngPtr->io_ptr ) + length; #else - byte **ioptr = (byte**)png_get_io_ptr(pngPtr); + byte** ioptr = ( byte** )png_get_io_ptr( pngPtr ); memcpy( *ioptr, data, length ); *ioptr += length; #endif diff --git a/neo/sys/posix/platform_linux.cpp b/neo/sys/posix/platform_linux.cpp index ecce63bb..48e8d297 100644 --- a/neo/sys/posix/platform_linux.cpp +++ b/neo/sys/posix/platform_linux.cpp @@ -262,14 +262,14 @@ void Sys_CPUCount( int& numLogicalCPUCores, int& numPhysicalCPUCores, int& numCP pos = strchr( buf + pos, '\n' ) - buf + 1; } - if( CPUCoresIsFound == false && SiblingsIsFound == false) + if( CPUCoresIsFound == false && SiblingsIsFound == false ) { common->Printf( "failed parsing /proc/cpuinfo\n" ); common->Printf( "alternative method used\n" ); - s_numPhysicalCPUCores = sysconf(_SC_NPROCESSORS_CONF); // _SC_NPROCESSORS_ONLN may not be reliable on Android + s_numPhysicalCPUCores = sysconf( _SC_NPROCESSORS_CONF ); // _SC_NPROCESSORS_ONLN may not be reliable on Android s_numLogicalCPUCores = s_numPhysicalCPUCores; // hack for CPU without Hyper-Threading (HT) technology } - else if( CPUCoresIsFound == true && SiblingsIsFound == false) + else if( CPUCoresIsFound == true && SiblingsIsFound == false ) { s_numLogicalCPUCores = s_numPhysicalCPUCores; // hack for CPU without Hyper-Threading (HT) technology } @@ -278,7 +278,7 @@ void Sys_CPUCount( int& numLogicalCPUCores, int& numPhysicalCPUCores, int& numCP { common->Printf( "failed to read /proc/cpuinfo\n" ); common->Printf( "alternative method used\n" ); - s_numPhysicalCPUCores = sysconf(_SC_NPROCESSORS_CONF); // _SC_NPROCESSORS_ONLN may not be reliable on Android + s_numPhysicalCPUCores = sysconf( _SC_NPROCESSORS_CONF ); // _SC_NPROCESSORS_ONLN may not be reliable on Android s_numLogicalCPUCores = s_numPhysicalCPUCores; // hack for CPU without Hyper-Threading (HT) technology }