Browse code

Fix calculation bug

Nat! authored on 16-05-2016 14:53:14
Showing 3 changed files
... ...
@@ -1,3 +1,6 @@
1
+## 0.2
2
+* fixed catastrophic miscalculation
3
+   
1 4
 ## 0.1
2 5
 
3
-   * added versioning
6
+* added versioning
... ...
@@ -213,7 +213,7 @@
213 213
 			isa = XCBuildConfiguration;
214 214
 			baseConfigurationReference = 41998A331CB6693400D18DD8 /* Debug.xcconfig */;
215 215
 			buildSettings = {
216
-				CURRENT_PROJECT_VERSION = 0.1;
216
+				CURRENT_PROJECT_VERSION = 0.2;
217 217
 			};
218 218
 			name = Debug;
219 219
 		};
... ...
@@ -221,7 +221,7 @@
221 221
 			isa = XCBuildConfiguration;
222 222
 			baseConfigurationReference = 41998A3A1CB6693400D18DD8 /* Release.xcconfig */;
223 223
 			buildSettings = {
224
-				CURRENT_PROJECT_VERSION = 0.1;
224
+				CURRENT_PROJECT_VERSION = 0.2;
225 225
 			};
226 226
 			name = Release;
227 227
 		};
... ...
@@ -11,7 +11,7 @@
11 11
 
12 12
 #include "mulle_align.h"
13 13
 
14
-#define MULLE_VARARG_VERSION  ((0 << 20) | (1 << 8) | 0)
14
+#define MULLE_VARARG_VERSION  ((0 << 20) | (2 << 8) | 0)
15 15
 
16 16
 
17 17
 /*
... ...
@@ -68,7 +68,7 @@ while( 0)
68 68
    type   *q;                                               \
69 69
                                                             \
70 70
    q      = (type *) mulle_align_pointer( args.p, sizeof( type) < sizeof( int) ? alignof( int) : alignof( type)); \
71
-   args.p = &((char *) args.p)[ sizeof( type) < sizeof( int) ? sizeof( int) : sizeof( type)];  \
71
+   args.p = &((char *) q)[ sizeof( type) < sizeof( int) ? sizeof( int) : sizeof( type)];  \
72 72
                                                             \
73 73
    (sizeof( type) < sizeof( int) ? (type) *(int *) q : *q); \
74 74
 })
... ...
@@ -80,7 +80,7 @@ while( 0)
80 80
    id   *q;                                                     \
81 81
                                                                 \
82 82
    q      = (id *) mulle_align_pointer( args.p, alignof( id));  \
83
-   args.p = &((char *) args.p)[ sizeof( id)];                   \
83
+   args.p = &((char *) q)[ sizeof( id)];                        \
84 84
                                                                 \
85 85
    *q;                                                          \
86 86
 })
... ...
@@ -93,7 +93,7 @@ while( 0)
93 93
    type   *q;                                                   \
94 94
                                                                 \
95 95
    q      = (type *) mulle_align_pointer( args.p, alignof( void *)); \
96
-   args.p = &((char *) args.p)[ sizeof( void *)];               \
96
+   args.p = &((char *) q)[ sizeof( void *)];                    \
97 97
                                                                 \
98 98
    *q;                                                          \
99 99
 })
... ...
@@ -109,7 +109,7 @@ while( 0)
109 109
    type   *q;                                                   \
110 110
                                                                 \
111 111
    q      = (type *) mulle_align_pointer( args.p, alignof( type)); \
112
-   args.p = &((char *) args.p)[ sizeof( type)];                 \
112
+   args.p = &((char *) q)[ sizeof( type)];                      \
113 113
                                                                 \
114 114
    *q;                                                          \
115 115
 })
... ...
@@ -121,7 +121,7 @@ while( 0)
121 121
    type   *q;                                                     \
122 122
                                                                   \
123 123
    q      = (type *) mulle_align_pointer( args.p, sizeof( type) < sizeof( double) ? alignof( double) : alignof( type)); \
124
-   args.p = &((char *) args.p)[ sizeof( type) < sizeof( double) ? sizeof( double) : sizeof( type)]; \
124
+   args.p = &((char *) q)[ sizeof( type) < sizeof( double) ? sizeof( double) : sizeof( type)]; \
125 125
                                                                   \
126 126
    (sizeof( type) < sizeof( double) ? (type) *(double *) q : *q); \
127 127
 })