| 32 | } |
| 33 | |
| 34 | static int readInt3(MFILE *f) { |
| 35 | int res = 0; |
| 36 | int c = memfgetc(f); |
| 37 | if (c == MEOF) |
| 38 | return -1; |
| 39 | res = c; |
| 40 | c = memfgetc(f); |
| 41 | if (c == MEOF) |
| 42 | return -1; |
| 43 | res = c + (res << 8); |
| 44 | c = memfgetc(f); |
| 45 | if (c == MEOF) |
| 46 | return -1; |
| 47 | return c + (res << 8); |
| 48 | } |
| 49 | |
| 50 | static s64 readInt4(MFILE *f) { |
| 51 | s64 tmp, res = 0; |
no test coverage detected