[Scummvm-cvs-logs] SF.net SVN: scummvm:[49058] tools/branches/branch-1-1-0/common
joostp at users.sourceforge.net
joostp at users.sourceforge.net
Mon May 17 12:47:27 CEST 2010
Revision: 49058
http://scummvm.svn.sourceforge.net/scummvm/?rev=49058&view=rev
Author: joostp
Date: 2010-05-17 10:47:27 +0000 (Mon, 17 May 2010)
Log Message:
-----------
backport r49049: Fix File::writeChar() on BE systems.
Modified Paths:
--------------
tools/branches/branch-1-1-0/common/file.cpp
tools/branches/branch-1-1-0/common/file.h
Modified: tools/branches/branch-1-1-0/common/file.cpp
===================================================================
--- tools/branches/branch-1-1-0/common/file.cpp 2010-05-17 10:30:17 UTC (rev 49057)
+++ tools/branches/branch-1-1-0/common/file.cpp 2010-05-17 10:47:27 UTC (rev 49058)
@@ -380,9 +380,9 @@
fscanf(_file, "%s", result);
}
-void File::writeChar(int i) {
+void File::writeChar(char i) {
if (!_file)
- throw FileException("File is not open");
+ throw FileException("File is not open");
if ((_mode & FILEMODE_WRITE) == 0)
throw FileException("Tried to write to a file opened in read mode (" + _name.getFullPath() + ")");
Modified: tools/branches/branch-1-1-0/common/file.h
===================================================================
--- tools/branches/branch-1-1-0/common/file.h 2010-05-17 10:30:17 UTC (rev 49057)
+++ tools/branches/branch-1-1-0/common/file.h 2010-05-17 10:47:27 UTC (rev 49058)
@@ -301,7 +301,7 @@
/**
* Writes a single character (equivalent of fputc).
*/
- void writeChar(int c);
+ void writeChar(char c);
/**
* Writes a single byte to the file.
* @throws FileException if file is not open / if write failed.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list