Files
mercury/tests/hard_coded/read_bitmap_size.exp
Julien Fischer 831dca8de8 Fix an abort in read_binary_file_as_bitmap.
Reading a bitmap from a binary file stream where the stream is already at EOF
causes an abort rather than returning an empty bitmap in the case where the
file is a regular file.  (The case where the stream is not a regular file is
already handled correctly.)

library/io.m:
    Fix the above problem.

tests/hard_coded/read_bitmap_size.{m,exp}:
    Extend this test case to check for the above.
2019-09-29 03:05:38 +10:00

7 lines
319 B
Plaintext

SKIP 0: 00000001.00000010.00000100.00001000.00010000.00100000.01000000.10000000.11111111
SKIP 1: 00000010.00000100.00001000.00010000.00100000.01000000.10000000.11111111
SKIP 2: 00000100.00001000.00010000.00100000.01000000.10000000.11111111
SKIP 4: 00010000.00100000.01000000.10000000.11111111
SKIP 8: 11111111
SKIP 9: