Commit e5a2f901 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

file.Cc::file_read_from_buffer: convert bufferCnt to long

parent b009832c
...@@ -1047,10 +1047,10 @@ size_t file_read_from_buffer(bfile_t *fileptr, void *ptr, size_t size) ...@@ -1047,10 +1047,10 @@ size_t file_read_from_buffer(bfile_t *fileptr, void *ptr, size_t size)
size_t offset = 0; size_t offset = 0;
if ( FILE_Debug ) if ( FILE_Debug )
Message("size = %ld Cnt = %d", size, (int) fileptr->bufferCnt); Message("size = %ld Cnt = %ld", size, (long) fileptr->bufferCnt);
if ( ((int)fileptr->bufferCnt) < 0 ) if ( ((long)fileptr->bufferCnt) < 0L )
Error("Internal problem. bufferCnt = %d", (int) fileptr->bufferCnt); Error("Internal problem. bufferCnt = %ld", (long) fileptr->bufferCnt);
rsize = size; rsize = size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment