From 4e8e716c5a373ae77400a5e955665bf8a7b017e9 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 24 Mar 2017 18:02:34 +0100 Subject: [PATCH] Fix potential issue in MT. --- m-snapshot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m-snapshot.h b/m-snapshot.h index a5475cbc..80222cc7 100644 --- a/m-snapshot.h +++ b/m-snapshot.h @@ -84,7 +84,8 @@ && SNAPSHOTI_W(flags) != SNAPSHOTI_F(flags)) #define SNAPSHOTI_CONTRACT(snap) do { \ assert((snap) != NULL); \ - SNAPSHOTI_FLAGS_CONTRACT((snap)->flags); \ + uint_fast8_t f = (snap)->flags; \ + SNAPSHOTI_FLAGS_CONTRACT(f); \ } while (0) #define SNAPSHOTI_DEF2(name, type, oplist) \