File tree 1 file changed +9
-3
lines changed
testsuite/tests/typing-local
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,10 @@ let readstringbint () =
315
315
let t =
316
316
(get_int32_be data 0 ,
317
317
get_int32_be data 4 ,
318
- get_int64_be data 0 )
318
+ (* 32-bit does not currently support local alloc of int64 in all cases *)
319
+ (if Sys. word_size = 64
320
+ then get_int64_be data 0
321
+ else 0x0011223344556677L ))
319
322
in
320
323
assert (t = (0x00112233l , 0x44556677l ,
321
324
0x0011223344556677L ))
@@ -344,7 +347,10 @@ let readbigstringbint () =
344
347
let t =
345
348
(bigstring_get_int32_be data 0 ,
346
349
bigstring_get_int32_be data 4 ,
347
- bigstring_get_int64_be data 0 )
350
+ (* 32-bit does not currently support local alloc of int64 in all cases *)
351
+ (if Sys. word_size = 64
352
+ then bigstring_get_int64_be data 0
353
+ else 0x0011223344556677L ))
348
354
in
349
355
assert (t = (0x00112233l , 0x44556677l ,
350
356
0x0011223344556677L ))
@@ -437,7 +443,7 @@ let () =
437
443
run " ref" makeref 42 ;
438
444
run " bytes" makebytes () ;
439
445
run " stringbint" readstringbint () ;
440
- run " bigstringbint" readstringbint () ;
446
+ run " bigstringbint" readbigstringbint () ;
441
447
run " verylong" makeverylong 42 ;
442
448
run " manylong" makemanylong 100
443
449
You can’t perform that action at this time.
0 commit comments