Fixed GCC warnings.

This commit is contained in:
bkaradzic 2014-08-15 19:14:17 -07:00
parent 3e6605a2c5
commit c56b7ad261
2 changed files with 3 additions and 3 deletions

View file

@ -652,7 +652,7 @@ struct Imgui
m_left = left;
m_scroll = _scroll;
_inputChar = 0 > _inputChar ? 0 : _inputChar;
_inputChar = _inputChar & 0x7f; // ASCII of GTFO! :)
m_lastChar = m_char;
m_char = _inputChar;
}

View file

@ -1207,7 +1207,7 @@ float fonsDrawText(struct FONScontext* stash,
const char* str, const char* end)
{
struct FONSstate* state = fons__getState(stash);
unsigned int codepoint;
unsigned int codepoint = 0;
unsigned int utf8state = 0;
struct FONSglyph* glyph = NULL;
struct FONSglyph* prevGlyph = NULL;
@ -1391,7 +1391,7 @@ float fonsTextBounds(struct FONScontext* stash,
float* bounds)
{
struct FONSstate* state = fons__getState(stash);
unsigned int codepoint;
unsigned int codepoint = 0;
unsigned int utf8state = 0;
struct FONSquad q;
struct FONSglyph* glyph = NULL;