Skip to content

Commit 5250050

Browse files
authored
Merge pull request #193 from MineRobber9000/fix-termux-build
Cast initialE.scanCode to int (fixes build on termux)
2 parents ff88b65 + fda10ba commit 5250050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MiniScript-cpp/src/Key.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Value KeyGet(ValueDict& scanMap) {
178178
}
179179
String s;
180180
if (initialE.c == 0) {
181-
s = "<" + String::Format(initialE.scanCode, "%d") + ">";
181+
s = "<" + String::Format((int)initialE.scanCode, "%d") + ">";
182182
} else {
183183
unsigned char buf[5] = {0, 0, 0, 0, 0};
184184
long nBytes = UTF8Encode(initialE.c, buf);

0 commit comments

Comments
 (0)