Add missing const cast

This commit is contained in:
Patrick Pelissier committed 2017-04-08 12:03:12 +02:00
1 parent 4c75569a20
commit 06b3f49855
1 file changed
+1 -1
+1 -1
View File
@@ -222,7 +222,7 @@
{ \
SNAPSHOTI_CONTRACT(snap); \
unsigned char flags = atomic_load(&snap->flags); \
return &snap->data[SNAPSHOTI_R(flags)]; \
return M_C3(snapshot_, name, _const_cast)(&snap->data[SNAPSHOTI_R(flags)]); \
} \
// FIXME: Method SWAP ?