diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2441ed2136..8aef17cf3d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,8 @@ +2000-08-02 03:14 UTC+0100 Victor Szakats + + * source/common/hbver.c + + Better, generic detection for bits. + 2000-08-01-21:20 GMT -3 Luiz Rafael Culik *contrib/hbzlib/zipfile2.c %some enhacements and fixed a bug inside hb___GetFilesNamesFromZip diff --git a/harbour/source/common/hbver.c b/harbour/source/common/hbver.c index 0f59ea7cdb..3200a1bdf9 100644 --- a/harbour/source/common/hbver.c +++ b/harbour/source/common/hbver.c @@ -376,15 +376,9 @@ char * hb_verCompiler( void ) #elif defined(__BORLANDC__) { - switch( sizeof( int ) ) - { - case 2: - strcat( pszCompiler, " (16 bit)" ); - break; - case 4: - strcat( pszCompiler, " (32 bit)" ); - break; - } + char szSub[ 32 ]; + sprintf( szSub, " (%i bit)", ( int ) ( sizeof( int ) * 8 ) ); + strcat( pszCompiler, szSub ); } #endif