# HG changeset patch # User Paul Beltyukov # Date 1494362804 -3600 # Node ID e483512edbeb05d20f669dc843df0437246ee80a # Parent bdc21971f95d942292ce0b5f7a2c41123d93ff6a Fix bug: allow global variables of type DT (initial values for DT are not const!) diff -r bdc21971f95d -r e483512edbeb lib/C/accessor.h --- a/lib/C/accessor.h Sun Apr 16 09:00:09 2017 +0100 +++ b/lib/C/accessor.h Tue May 09 21:46:44 2017 +0100 @@ -57,7 +57,7 @@ __INIT_RETAIN(name, retained) #define __INIT_GLOBAL(type, name, initial, retained)\ {\ - static const type temp = initial;\ + type temp = initial;\ __INIT_GLOBAL_##name(temp);\ __INIT_RETAIN((*GLOBAL__##name), retained)\ }