diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-11 23:26:03 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-11 23:26:03 -0300 |
commit | 842355c831404cc1aa3d9ac0918eed0c2d2a86fc (patch) | |
tree | 15d45bad489fb394b7053a135e905b02fab414ae /jet2.cpp | |
parent | 13fdfe875efdfb33d392c5e634ceff494962e7dc (diff) | |
download | jet-842355c831404cc1aa3d9ac0918eed0c2d2a86fc.tar.gz jet-842355c831404cc1aa3d9ac0918eed0c2d2a86fc.zip |
Fix decoding
Diffstat (limited to 'jet2.cpp')
-rw-r--r-- | jet2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |