mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-09 15:40:10 +00:00
![Arthur O'Dwyer](/assets/img/avatar_default.png)
rogueviz/rogueviz.cpp: In function ‘hr::color_t rogueviz::parse1(const string&)’: rogueviz/rogueviz.cpp:76:75: error: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘int*’ [-Werror=format=] sscanf(s.c_str(), "R%x,%x,%x,%d,%d", &mh, &minh, &alpha, &step, &start); ^ I believe these three variables should have been `color_t` all along. I think this fix doesn't change any of the arithmetic, but I could be wrong.