Commit Graph

1 Commits

Author SHA1 Message Date
Fergus Henderson
f6a879896d Fix a bug where copy/2 was returning bogus data when copying string literals.
Estimated hours taken: 2

Fix a bug where copy/2 was returning bogus data when copying string literals.

runtime/mercury_deep_copy_body.h:
	Change the code so that it doesn't assume that string literals
	must be aligned, since currently they aren't.

tests/hard_coded/Mmakefile:
tests/hard_coded/string_alignment_bug.m:
tests/hard_coded/string_alignment_bug.exp:
	Add a regression test.
1999-03-24 04:22:18 +00:00