Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At https://github.com/octalmage/robotjs/blob/b26c7ee0e3dd05420370350e540c48ae9d38f06c/src/keycode.c#L98, `sizeof(void*)` bytes (probably 8) are written to a memory segment of 2 bytes (a 16-bit CGKeycode variable), resulting in all kinds of weird behaviour, like unrelated variables getting NULLed. Making `code` a a type that can hold `sizeof(void*)` bytes fixes this. Closes octalmage#570
- Loading branch information