common/hud: fix a conversion warning

warning C4242: 'argument' : conversion from 'int' to 'char', possible loss of data
This commit is contained in:
Andrew Wong 2013-02-10 00:03:11 -05:00
parent d4c62d4aef
commit ccbfea69b1

View File

@ -278,7 +278,7 @@ int
Hud::drawString(std::vector<float> &vboSource, int x, int y, float r, float g, float b, const char *c) const Hud::drawString(std::vector<float> &vboSource, int x, int y, float r, float g, float b, const char *c) const
{ {
while(*c) { while(*c) {
int ch = (*c) & 0x7f; char ch = (*c) & 0x7f;
x = drawChar(vboSource, x, y, r, g, b, ch); x = drawChar(vboSource, x, y, r, g, b, ch);
c++; c++;
} }