From 13d33fca0d803c73bb7f8387930e7366113f992c Mon Sep 17 00:00:00 2001 From: ahodgkinson Date: Fri, 17 Mar 2006 00:07:21 +0000 Subject: [PATCH] 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 --- flaim/src/filesys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaim/src/filesys.h b/flaim/src/filesys.h index c60b65c..47856ab 100644 --- a/flaim/src/filesys.h +++ b/flaim/src/filesys.h @@ -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;