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

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Tue Jul 22 19:00:12 CEST 2008


Revision: 33208
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33208&view=rev
Author:   aquadran
Date:     2008-07-22 17:00:11 +0000 (Tue, 22 Jul 2008)

Log Message:
-----------
corrected few type casts

Modified Paths:
--------------
    residual/trunk/engine/lua/lrestore.cpp
    residual/trunk/engine/lua/lsave.cpp

Modified: residual/trunk/engine/lua/lrestore.cpp
===================================================================
--- residual/trunk/engine/lua/lrestore.cpp	2008-07-22 16:35:18 UTC (rev 33207)
+++ residual/trunk/engine/lua/lrestore.cpp	2008-07-22 17:00:11 UTC (rev 33208)
@@ -98,7 +98,7 @@
 			return;
 		}
 
-		obj->value.i = (long)found->object;
+		obj->value.i = (int32)found->object;
 	}
 }
 
@@ -146,7 +146,7 @@
 			else
 				tempString = luaS_createudata(value, tag);
 			if (restoreCallback != NULL) {
-				tempString->u.s.globalval.value.ts = (TaggedString *)restoreCallback(tempString->u.s.globalval.ttype, (long)tempString->u.s.globalval.value.ts, restoreFunc);
+				tempString->u.s.globalval.value.ts = (TaggedString *)restoreCallback(tempString->u.s.globalval.ttype, (int32)tempString->u.s.globalval.value.ts, restoreFunc);
 			}
 		}
 		tempString->constindex = constIndex;

Modified: residual/trunk/engine/lua/lsave.cpp
===================================================================
--- residual/trunk/engine/lua/lsave.cpp	2008-07-22 16:35:18 UTC (rev 33207)
+++ residual/trunk/engine/lua/lsave.cpp	2008-07-22 17:00:11 UTC (rev 33208)
@@ -120,7 +120,7 @@
 					saveFunc(tempString->str, tempString->u.s.len);
 				}  else {
 					if (saveCallback != NULL) {
-						tempString->u.s.globalval.value.ts = (TaggedString *)saveCallback(tempString->u.s.globalval.ttype, (long)tempString->u.s.globalval.value.ts, saveFunc);
+						tempString->u.s.globalval.value.ts = (TaggedString *)saveCallback(tempString->u.s.globalval.ttype, (int32)tempString->u.s.globalval.value.ts, saveFunc);
 					}
 					saveObjectValue(&tempString->u.s.globalval, saveFunc);
 				}


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