From 842355c831404cc1aa3d9ac0918eed0c2d2a86fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Sat, 11 Jul 2020 23:26:03 -0300 Subject: Fix decoding --- jet2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jet2.cpp') 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) { -- cgit v1.2.3