diff options
author | Max Horn | 2013-04-18 20:20:11 +0200 |
---|---|---|
committer | Max Horn | 2013-04-18 23:50:20 +0200 |
commit | 2a10f6a97f4e3cd7ef64c4d068a3fd70d38f7f19 (patch) | |
tree | 51431cee05abd54d62d15ebea6d67346972e09cc /engines/wintermute/base/font/base_font_bitmap.cpp | |
parent | 055b86ea18c42d9df6deb2b565dab095f169edbb (diff) | |
download | scummvm-rg350-2a10f6a97f4e3cd7ef64c4d068a3fd70d38f7f19.tar.gz scummvm-rg350-2a10f6a97f4e3cd7ef64c4d068a3fd70d38f7f19.tar.bz2 scummvm-rg350-2a10f6a97f4e3cd7ef64c4d068a3fd70d38f7f19.zip |
WINTERMUTE: Do not us char literals to index an array
This silences a clang warning
Diffstat (limited to 'engines/wintermute/base/font/base_font_bitmap.cpp')
-rw-r--r-- | engines/wintermute/base/font/base_font_bitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/font/base_font_bitmap.cpp b/engines/wintermute/base/font/base_font_bitmap.cpp index 5139620727..351444a1db 100644 --- a/engines/wintermute/base/font/base_font_bitmap.cpp +++ b/engines/wintermute/base/font/base_font_bitmap.cpp @@ -478,7 +478,7 @@ bool BaseFontBitmap::loadBuffer(byte *buffer) { _widths[spaceChar] = spaceWidth; } else { if (_widths[spaceChar] == expandWidth || _widths[spaceChar] == 0) { - _widths[spaceChar] = (_widths['m'] + _widths['i']) / 2; + _widths[spaceChar] = (_widths[(uint)'m'] + _widths[(uint)'i']) / 2; } } } else { |