[Scummvm-cvs-logs] SF.net SVN: scummvm:[33151] residual/trunk/engine

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sun Jul 20 23:37:34 CEST 2008


Revision: 33151
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33151&view=rev
Author:   aquadran
Date:     2008-07-20 21:37:09 +0000 (Sun, 20 Jul 2008)

Log Message:
-----------
fixed warnings

Modified Paths:
--------------
    residual/trunk/engine/lua/lmem.cpp
    residual/trunk/engine/savegame.cpp

Modified: residual/trunk/engine/lua/lmem.cpp
===================================================================
--- residual/trunk/engine/lua/lmem.cpp	2008-07-20 21:31:03 UTC (rev 33150)
+++ residual/trunk/engine/lua/lmem.cpp	2008-07-20 21:37:09 UTC (rev 33151)
@@ -36,16 +36,13 @@
 */
 void *luaM_realloc (void *block, int32 size)
 {
-  size_t s = (size_t)size;
-  if (s != ((unsigned) size))
-    lua_error("Allocation Error: Block too big");
   if (size == 0) {
     if (block) {
       free(block);
     }
     return NULL;
   }
-  block = block ? realloc(block, s) : malloc(s);
+  block = block ? realloc(block, size) : malloc(size);
   if (block == NULL)
     lua_error(memEM);
   return block;

Modified: residual/trunk/engine/savegame.cpp
===================================================================
--- residual/trunk/engine/savegame.cpp	2008-07-20 21:31:03 UTC (rev 33150)
+++ residual/trunk/engine/savegame.cpp	2008-07-20 21:37:09 UTC (rev 33151)
@@ -61,8 +61,6 @@
 }
 
 SaveGame::~SaveGame() {
-	//uint32 tag = SAVEGAME_FOOTERTAG;
-	
 	if (_saving) {
 		_outSaveFile->writeUint32BE(SAVEGAME_FOOTERTAG);
 		_outSaveFile->finalize();


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