diff options
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/snapshot.c | 2 | ||||
-rw-r--r-- | apps/plugins/zxbox/tapefile.c | 2 | ||||
-rw-r--r-- | apps/plugins/zxbox/z80.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/zxbox/snapshot.c b/apps/plugins/zxbox/snapshot.c index 468f46667e..74845bac8e 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, | |||
362 | GET_DATA(ch); | 362 | GET_DATA(ch); |
363 | if(p + times > end) { | 363 | if(p + times > end) { |
364 | put_msg("Warning: Repeat parameter too large in snapshot"); | 364 | put_msg("Warning: Repeat parameter too large in snapshot"); |
365 | times = (int) ((long) end - (long) p); | 365 | times = (int) ((intptr_t) end - (intptr_t) p); |
366 | } | 366 | } |
367 | for(j = 0; j < times; j++) *p++ = ch; | 367 | for(j = 0; j < times; j++) *p++ = ch; |
368 | } | 368 | } |
diff --git a/apps/plugins/zxbox/tapefile.c b/apps/plugins/zxbox/tapefile.c index b030f8dab9..054cae1aba 100644 --- a/apps/plugins/zxbox/tapefile.c +++ b/apps/plugins/zxbox/tapefile.c | |||
@@ -216,7 +216,7 @@ static struct tzxblock tzxb[NUMBLOCKID] = { | |||
216 | }; | 216 | }; |
217 | 217 | ||
218 | 218 | ||
219 | #define PTRDIFF(pe, ps) ((int) (((long) (pe) - (long) (ps)) / sizeof(*pe))) | 219 | #define PTRDIFF(pe, ps) pe - ps |
220 | 220 | ||
221 | static char tzxheader[] = {'Z','X','T','a','p','e','!',0x1A}; | 221 | static char tzxheader[] = {'Z','X','T','a','p','e','!',0x1A}; |
222 | 222 | ||
diff --git a/apps/plugins/zxbox/z80.c b/apps/plugins/zxbox/z80.c index f6f1de7468..683584f471 100644 --- a/apps/plugins/zxbox/z80.c +++ b/apps/plugins/zxbox/z80.c | |||
@@ -48,7 +48,7 @@ static byte *a64kmalloc(int num64ksegs) | |||
48 | /*exit(1);*/ | 48 | /*exit(1);*/ |
49 | } | 49 | } |
50 | 50 | ||
51 | return (byte *) (( (long) bigmem & ~((long) 0xFFFF)) + 0x10000); | 51 | return (byte *) (( (intptr_t) bigmem & ~((intptr_t) 0xFFFF)) + 0x10000); |
52 | } | 52 | } |
53 | 53 | ||
54 | 54 | ||