From 78d5f049f0e60bd0c903bc331c253f681d082cea Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Fri, 7 Sep 2012 12:58:57 +0100 Subject: Eliminating type puns on scan states, location dependencies, and allocation points through the mps interface. Now that we're recommending inlining with client code and optimising with -O2 or -O3, we can't afford any bug introduced by the strict aliasing rule. Copied from Perforce Change: 179322 ServerID: perforce.ravenbrook.com --- mps/code/testlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mps/code/testlib.h') diff --git a/mps/code/testlib.h b/mps/code/testlib.h index d16f4fb6eef..2bcd50e7c18 100644 --- a/mps/code/testlib.h +++ b/mps/code/testlib.h @@ -118,7 +118,7 @@ typedef long longest_t; * argument on stderr and exits the program. Otherwise does nothing. * * Typical use: - * die(mps_ap_create(&ap, pool, MPS_RANK_EXACT), "APCreate"); + * die(mps_ap_create(&ap, pool, mps_rank_exact()), "APCreate"); */ extern void die(mps_res_t res, const char *s); -- cgit v1.2.1