Fix bug: allow global variables of type DT (initial values for DT are not const!)
authorPaul Beltyukov <beltyukov.p.a@gmail.com>
Tue, 09 May 2017 21:46:44 +0100
changeset 1051 e483512edbeb
parent 1050 bdc21971f95d
child 1052 f91488700835
Fix bug: allow global variables of type DT (initial values for DT are not const!)
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)\
     }