From 7849947ca5588c212149339e194f76bde915b2d1 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 12 Sep 2014 10:31:48 +0000 Subject: [PATCH] [PSEH_TEST] - Fix incorrect size in memcmp. Spotted by clang svn path=/trunk/; revision=64123 --- rostests/tests/pseh2/psehtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rostests/tests/pseh2/psehtest.c b/rostests/tests/pseh2/psehtest.c index 4325ab2e270..dbd0e1e56c4 100644 --- a/rostests/tests/pseh2/psehtest.c +++ b/rostests/tests/pseh2/psehtest.c @@ -2620,7 +2620,7 @@ static DECLSPEC_NOINLINE int sanity_check(int ret, struct volatile_context * before, struct volatile_context * after) { - if(ret && memcmp(before, after, sizeof(before))) + if(ret && memcmp(before, after, sizeof(*before))) { trace("volatile context corrupted\n"); return 0; -- 2.17.1