summaryrefslogtreecommitdiff
path: root/apps/plugins/chip8.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chip8.c')
-rw-r--r--apps/plugins/chip8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 3bdf95093a..7435518855 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1329,7 +1329,7 @@ static bool chip8_init(const char* file)
int i;
fd = rb->open(file, O_RDONLY);
- if (fd==-1) {
+ if (fd < 0) {
rb->lcd_puts(0, 6, "File Error.");
return false;
}
@@ -1351,7 +1351,7 @@ static bool chip8_init(const char* file)
c8kname[len-2] = '8';
c8kname[len-1] = 'k';
fd = rb->open(c8kname, O_RDONLY);
- if (fd!=-1) {
+ if (fd >= 0) {
rb->lcd_puts(0, 6, "File&Keymap OK.");
numread = rb->read(fd, chip8_keymap, 16);
rb->close(fd);