mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: Do not use NULL in arithmetic
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
2cd6837da9
commit
7c8f04aa75
1 changed files with 2 additions and 2 deletions
|
|
@ -115,8 +115,8 @@ std::string input_util::to_string(keycode code) {
|
|||
char name[64];
|
||||
int result =
|
||||
GetKeyNameTextA(glfwGetKeyScancode(icode_repr) << 16, name, 64);
|
||||
if (result == NULL) return "Unknown";
|
||||
return std::string(name);
|
||||
if (result == 0) return "Unknown";
|
||||
return name;
|
||||
#else
|
||||
const char* name =
|
||||
glfwGetKeyName(icode_repr, glfwGetKeyScancode(icode_repr));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue