From 2d3cbe2e031a4d5b61ff407b1387807a19da7e32 Mon Sep 17 00:00:00 2001 From: "Daniel R. Slater" Date: Wed, 11 Nov 2020 11:55:53 -0500 Subject: [PATCH] Added parens to fix bitwise test failing due to precedence in maybe_dos_exe --- start.exe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.exe.c b/start.exe.c index 81712d6..e5b388f 100644 --- a/start.exe.c +++ b/start.exe.c @@ -235,7 +235,7 @@ maybe_dos_exe (FILE* file, char* filename) assert (NULL != filename); file_seek (file, filename, 0x18); read_bytes (file, filename, 1); - if (0 == bytes[0] & 0xc0) { + if (0 == (bytes[0] & 0xc0)) { (void) fclose (file); start_as_dos (filename); }