Ignore:
Timestamp:
08/26/14 04:03:10 (11 years ago)
Author:
epyon
Message:
  • nova now compiles again under all three compilers with -Winsane and no warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_window.cc

    r319 r323  
    1919
    2020#if NV_SDL_VERSION == NV_SDL_20
    21         uint32 ucode = ke.keysym.sym;
    22 #else
    23         uint32 ucode = ke.keysym.unicode;
     21        uint32 ucode = (uint32)ke.keysym.sym;
     22#else
     23        uint32 ucode = (uint32)ke.keysym.unicode;
    2424#endif
    2525
     
    3434                        int capslock = !!(ke.keysym.mod & KMOD_CAPS);
    3535                        if ((shifted ^ capslock) != 0) {
    36                                 kevent.key.ascii = (char8)SDL_toupper(ucode);
     36                                kevent.key.ascii = (char8)SDL_toupper((int)ucode);
    3737                        }
    3838                }
Note: See TracChangeset for help on using the changeset viewer.