projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
423d148
)
Fix #137: explicitly convert argument from int to char to eliminate issues on big...
author
Ondřej Hošek
<ondra.hosek@gmail.com>
Sun, 7 Oct 2007 09:13:08 +0000
(09:13 +0000)
committer
Ondřej Hošek
<ondra.hosek@gmail.com>
Sun, 7 Oct 2007 09:13:08 +0000
(09:13 +0000)
SVN-Revision: 5162
src/physfs/physfs_stream.cpp
patch
|
blob
|
history
diff --git
a/src/physfs/physfs_stream.cpp
b/src/physfs/physfs_stream.cpp
index
e1d1557
..
c4347b2
100644
(file)
--- a/
src/physfs/physfs_stream.cpp
+++ b/
src/physfs/physfs_stream.cpp
@@
-128,6
+128,8
@@
OFileStreambuf::~OFileStreambuf()
int
OFileStreambuf::overflow(int c)
{
+ char c2 = (char)c;
+
if(pbase() == pptr())
return 0;
@@
-137,7
+139,7
@@
OFileStreambuf::overflow(int c)
return traits_type::eof();
if(c != traits_type::eof()) {
- PHYSFS_sint64 res = PHYSFS_write(file, &c, 1, 1);
+ PHYSFS_sint64 res = PHYSFS_write(file, &c
2
, 1, 1);
if(res <= 0)
return traits_type::eof();
}