summaryrefslogtreecommitdiff
path: root/jet2.cpp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-11 23:26:03 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-11 23:26:03 -0300
commit842355c831404cc1aa3d9ac0918eed0c2d2a86fc (patch)
tree15d45bad489fb394b7053a135e905b02fab414ae /jet2.cpp
parent13fdfe875efdfb33d392c5e634ceff494962e7dc (diff)
downloadjet-842355c831404cc1aa3d9ac0918eed0c2d2a86fc.tar.gz
jet-842355c831404cc1aa3d9ac0918eed0c2d2a86fc.zip
Fix decoding
Diffstat (limited to 'jet2.cpp')
-rw-r--r--jet2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/jet2.cpp b/jet2.cpp
index fc4fcaa..afbc604 100644
--- a/jet2.cpp
+++ b/jet2.cpp
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
while (!quit) {
clear();
- uint8_t msg[5];
+ int8_t msg[5];
msg[0] = OP_SHOW;
encode2(window_width, msg, 1);
encode2(window_height, msg, 3);
@@ -48,9 +48,9 @@ int main(int argc, char *argv[]) {
printw("%c", view[i]);
}
- uint8_t mov[2];
- uint8_t del[1];
- uint8_t ins[2];
+ int8_t mov[2];
+ int8_t del[1];
+ int8_t ins[2];
int input = getch();
if (mode == NORMAL_MODE) {
switch (input) {