mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Adding explicit cast to uint8_t
This commit is contained in:
parent
50bbd36b4a
commit
5e64465300
@ -138,7 +138,7 @@ static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string)
|
|||||||
{
|
{
|
||||||
const unsigned long hat = strtoul(c + 1, (char**) &c, 10);
|
const unsigned long hat = strtoul(c + 1, (char**) &c, 10);
|
||||||
const unsigned long bit = strtoul(c + 1, (char**) &c, 10);
|
const unsigned long bit = strtoul(c + 1, (char**) &c, 10);
|
||||||
fields[i].element->value = (hat << 4) | bit;
|
fields[i].element->value = (uint8_t) (hat << 4) | bit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fields[i].element->value = (uint8_t) strtoul(c + 1, (char**) &c, 10);
|
fields[i].element->value = (uint8_t) strtoul(c + 1, (char**) &c, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user