Ticket #1086: t1086_ogl_tex-swprintf-signedness-fix.patch

File t1086_ogl_tex-swprintf-signedness-fix.patch, 492 bytes (added by Echelon9, 12 years ago)

Proposed fix for ogl_tex swprintf signedness

  • source/lib/res/graphics/ogl_tex.cpp

     
    505505
    506506static Status OglTex_to_string(const OglTex* ot, wchar_t* buf)
    507507{
    508     swprintf_s(buf, H_STRING_LEN, L"OglTex id=%d flags=%x", ot->id, ot->flags);
     508    swprintf_s(buf, H_STRING_LEN, L"OglTex id=%u flags=%x", ot->id, ot->flags);
    509509    return INFO::OK;
    510510}
    511511