Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
e5a2f901
Commit
e5a2f901
authored
Feb 25, 2014
by
Uwe Schulzweida
Browse files
file.Cc::file_read_from_buffer: convert bufferCnt to long
parent
b009832c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/file.c
View file @
e5a2f901
...
...
@@ -1047,10 +1047,10 @@ size_t file_read_from_buffer(bfile_t *fileptr, void *ptr, size_t size)
size_t
offset
=
0
;
if
(
FILE_Debug
)
Message
(
"size = %ld Cnt = %d"
,
size
,
(
int
)
fileptr
->
bufferCnt
);
Message
(
"size = %ld Cnt = %
l
d"
,
size
,
(
long
)
fileptr
->
bufferCnt
);
if
(
((
int
)
fileptr
->
bufferCnt
)
<
0
)
Error
(
"Internal problem. bufferCnt = %d"
,
(
int
)
fileptr
->
bufferCnt
);
if
(
((
long
)
fileptr
->
bufferCnt
)
<
0
L
)
Error
(
"Internal problem. bufferCnt = %
l
d"
,
(
long
)
fileptr
->
bufferCnt
);
rsize
=
size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment