diff options
author | rsn8887 | 2018-03-28 17:01:49 -0500 |
---|---|---|
committer | rsn8887 | 2018-03-28 23:00:13 -0500 |
commit | b875f46db0f15f6fbbcda952457712ff9453a05b (patch) | |
tree | 9b0ceeb9363c1580b0d4e323c59977afbcb15789 /engines/lilliput/lilliput.cpp | |
parent | d320bc569ab5528841d201a27b2c2396d11982ed (diff) | |
download | scummvm-rg350-b875f46db0f15f6fbbcda952457712ff9453a05b.tar.gz scummvm-rg350-b875f46db0f15f6fbbcda952457712ff9453a05b.tar.bz2 scummvm-rg350-b875f46db0f15f6fbbcda952457712ff9453a05b.zip |
LILLIPUT: Fix narrowing conversion compiler errors on psp2 build
Diffstat (limited to 'engines/lilliput/lilliput.cpp')
-rw-r--r-- | engines/lilliput/lilliput.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp index a37f02db8c..9daa71fff7 100644 --- a/engines/lilliput/lilliput.cpp +++ b/engines/lilliput/lilliput.cpp @@ -1510,11 +1510,11 @@ void LilliputEngine::sub1693A_chooseDirections(int index) { byte LilliputEngine::sub16A76(int indexb, int indexs) { debugC(2, kDebugEngine, "sub16A76(%d, %d)", indexb, indexs); - static const char _array16A6C[4] = {1, 0, 0, -1}; - static const char _array16A70[4] = {0, -1, 1, 0}; + static const int8 _array16A6C[4] = {1, 0, 0, -1}; + static const int8 _array16A70[4] = {0, -1, 1, 0}; - char var1h = _word16937Pos.x + _array16A6C[indexb]; - char var1l = _word16937Pos.y + _array16A70[indexb]; + int8 var1h = _word16937Pos.x + _array16A6C[indexb]; + int8 var1l = _word16937Pos.y + _array16A70[indexb]; int16 var2 = findHotspot(Common::Point(var1h, var1l)); if (var2 == -1) |