aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/package
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-14 19:56:15 +0000
committerEugene Sandulenko2010-10-12 22:43:36 +0000
commit72130c284d2f3b2db8d54da96f798806082029f3 (patch)
tree84c5df72a11ec6aacd384287bbbb0b6e6e160023 /engines/sword25/package
parent43959cc6bd87cbe59b2d9440c6f819c39cb574fd (diff)
downloadscummvm-rg350-72130c284d2f3b2db8d54da96f798806082029f3.tar.gz
scummvm-rg350-72130c284d2f3b2db8d54da96f798806082029f3.tar.bz2
scummvm-rg350-72130c284d2f3b2db8d54da96f798806082029f3.zip
SWORD25: Fix couple more warnings
svn-id: r53236
Diffstat (limited to 'engines/sword25/package')
-rw-r--r--engines/sword25/package/packagemanager_script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/package/packagemanager_script.cpp b/engines/sword25/package/packagemanager_script.cpp
index a7c845d32f..3719593e23 100644
--- a/engines/sword25/package/packagemanager_script.cpp
+++ b/engines/sword25/package/packagemanager_script.cpp
@@ -195,9 +195,9 @@ static int GetFileAsString(lua_State *L) {
BS_PackageManager *pPM = GetPM();
unsigned int FileSize;
- void *FileData = pPM->GetFile(luaL_checkstring(L, 1), &FileSize);
+ char *FileData = (char *)pPM->GetFile(luaL_checkstring(L, 1), &FileSize);
if (FileData) {
- lua_pushlstring(L, static_cast<char *>(FileData), FileSize);
+ lua_pushlstring(L, FileData, FileSize);
delete FileData;
return 1;