diff options
Diffstat (limited to 'apps/plugins/zxbox/snapshot.c')
| -rw-r--r-- | apps/plugins/zxbox/snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/zxbox/snapshot.c b/apps/plugins/zxbox/snapshot.c index 468f466..74845ba 100644 --- a/apps/plugins/zxbox/snapshot.c +++ b/apps/plugins/zxbox/snapshot.c @@ -362,7 +362,7 @@ static void read_compressed_data(SNFILE *fp, byte *start, unsigned size, GET_DATA(ch); if(p + times > end) { put_msg("Warning: Repeat parameter too large in snapshot"); - times = (int) ((long) end - (long) p); + times = (int) ((intptr_t) end - (intptr_t) p); } for(j = 0; j < times; j++) *p++ = ch; } |