Commit Graph

1 Commits

Author SHA1 Message Date
Julien Fischer
ca55327c27 Fix various problems with the new integer types and the Java backend.
compiler/mlds_to_java.m:
    Generate the correct for uint16 and uint8 right shifts: the
    existing code failed to account for the fact that Java will
    promote a byte or short that is the first operand of a shift
    to an int.

library/io.m:
    Add the missing Java definition of do_write_uint/5.

tests/hard_coded/test_int_hash.m:
    Translate the Java implementation of the hash function
    into C#.

tests/hard_coded/Mmakefile:
    Run the test_int_hash test in all grades.

test/hard_coded/bitwise_int.exp2:
    Add an expected output for backends where int is a 32-bit
    type.
2017-09-03 04:18:35 +10:00