mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 11:54:02 +00:00
Estimated hours taken: 0.5 compiler/ml_call_gen.m: Fix a bug with boxing/unboxing of float no_tag types. The MLDS code generator was generating a `cast' where it should have been generating a `box' or `unbox' plus a `cast'. tests/hard_coded/Mmakefile: tests/hard_coded/float_field.m: tests/hard_coded/float_field.exp: A regression test.
13 lines
238 B
Plaintext
13 lines
238 B
Plaintext
foo(1.00000000000000)
|
|
1.00000000000000
|
|
bar(2, 3.00000000000000, 4)
|
|
3.00000000000000
|
|
5.00000000000000
|
|
5.00000000000000
|
|
foo2(1.00000000000000)
|
|
1.00000000000000
|
|
bar2(2, 3.00000000000000, 4)
|
|
3.00000000000000
|
|
5.00000000000000
|
|
5.00000000000000
|