File tree Expand file tree Collapse file tree 2 files changed +6
-24
lines changed Expand file tree Collapse file tree 2 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -286,28 +286,10 @@ enum
286
286
enum REGMASK = 0xFFFF ;
287
287
288
288
// targ_llong is also used to store host pointers, so it should have at least their size
289
- version (SCPP)
290
- {
291
- // 64 bit support
292
- alias targ_ptrdiff_t = int64_t ; // ptrdiff_t for target machine
293
- alias targ_size_t = uint64_t ; // size_t for the target machine
294
- }
295
- else version (SPP)
296
- {
297
- alias targ_ptrdiff_t = targ_int; // ptrdiff_t for target machine
298
- alias targ_size_t = targ_uns; // size_t for the target machine
299
- }
300
- else version (HTOD)
301
- {
302
- alias targ_ptrdiff_t = targ_int; // ptrdiff_t for target machine
303
- alias targ_size_t = targ_uns; // size_t for the target machine
304
- }
305
- else
306
- {
307
- // Support 64 bit targets
308
- alias targ_ptrdiff_t = int64_t ; // ptrdiff_t for target machine
309
- alias targ_size_t = uint64_t ; // size_t for the target machine
310
- }
289
+
290
+ // 64 bit support
291
+ alias targ_ptrdiff_t = int64_t ; // ptrdiff_t for target machine
292
+ alias targ_size_t = uint64_t ; // size_t for the target machine
311
293
312
294
/* Enable/disable various features
313
295
(Some features may no longer work the old way when compiled out,
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ void htod_struct(Classsym *s)
424
424
switch (sf.Sclass)
425
425
{
426
426
case SCmember:
427
- memoff = sf.Smemoff;
427
+ memoff = cast ( uint ) sf.Smemoff;
428
428
htod_indent(indent + 4 );
429
429
fprintf(fdmodule, " %s%s;\n " , pt, &sf.Sident[0 ]);
430
430
break ;
@@ -435,7 +435,7 @@ void htod_struct(Classsym *s)
435
435
sprintf(bf.ptr, " __bitfield%d" , ++ bitfieldn);
436
436
htod_indent(indent + 4 );
437
437
fprintf(fdmodule, " %s%s;\n " , pt, bf.ptr);
438
- memoff = sf.Smemoff;
438
+ memoff = cast ( uint ) sf.Smemoff;
439
439
}
440
440
// Swidth, Sbit
441
441
m = (cast (targ_ullong)1 << sf.Swidth) - 1 ;
You can’t perform that action at this time.
0 commit comments