diff --git a/rot8_rev b/rot8_rev deleted file mode 100755 index 3dbe6fb..0000000 Binary files a/rot8_rev and /dev/null differ diff --git a/src/rot8_io.c b/src/rot8_io.c index a62e3bf..89ee10a 100644 --- a/src/rot8_io.c +++ b/src/rot8_io.c @@ -20,7 +20,8 @@ void read_tape(const char *filename, char *tape) { FILE *fp = fopen(filename, "r"); - char get; + int get; // Attention, the return value of fgetc's type is int!!! + // On ARM, char <=> unsigned char,if "char get",EOF(-1) will assign 255 to "get",making the comparison always TRUE while ((get = fgetc(fp)) != EOF) { if (strchr("><+-[].,", get) != NULL) { *tail = get;