Fixed issue where flmGetMaxFileSize() was returning the wrong value on 64-bit platforms due to a typecast problem. The compiler (gcc) was implicitly casting the file size value to be a signed integer and causing the sign bit to be extended.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@184 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-03-17 00:07:21 +00:00
parent e2005fa114
commit 13d33fca0d

View File

@@ -567,7 +567,7 @@
if( uiDbVersion >= FLM_VER_4_3)
{
uiMaxSize = (FB2UW( &(pucLogHdr[ LOG_MAX_FILE_SIZE]))) << 16;
uiMaxSize = ((FLMUINT)FB2UW( &pucLogHdr[ LOG_MAX_FILE_SIZE])) << 16;
if( !uiMaxSize)
{
uiMaxSize = MAX_FILE_SIZE_VER40;