russellallen / self

Making the world safe for objects
http://selflanguage.org
698 stars 75 forks source link

vm: fix narrowing conversion from int to char warnings #114

Closed leeduhem closed 7 years ago

leeduhem commented 7 years ago

When compiled with g++ 6.3.1, I got the following error:

/home/lee/works/self/self/vm/src/any/os/xlibWindow.cpp: In member function ‘bool XPlatformWindow::setup_gcs()’: /home/lee/works/self/self/vm/src/any/os/xlibWindow.cpp:164:51: error: narrowing conversion of ‘170’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa};

This commit can fix this error.