[Scummvm-cvs-logs] SF.net SVN: scummvm:[49049] tools/trunk/common

joostp at users.sourceforge.net joostp at users.sourceforge.net
Sun May 16 19:31:43 CEST 2010


Revision: 49049
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49049&view=rev
Author:   joostp
Date:     2010-05-16 17:31:42 +0000 (Sun, 16 May 2010)

Log Message:
-----------
Fix File::writeChar() on BE systems.

Modified Paths:
--------------
    tools/trunk/common/file.cpp
    tools/trunk/common/file.h

Modified: tools/trunk/common/file.cpp
===================================================================
--- tools/trunk/common/file.cpp	2010-05-16 17:21:37 UTC (rev 49048)
+++ tools/trunk/common/file.cpp	2010-05-16 17:31:42 UTC (rev 49049)
@@ -384,9 +384,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/trunk/common/file.h
===================================================================
--- tools/trunk/common/file.h	2010-05-16 17:21:37 UTC (rev 49048)
+++ tools/trunk/common/file.h	2010-05-16 17:31:42 UTC (rev 49049)
@@ -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