Browse code

fix obvious problem

Nat! authored on 04-06-2016 17:35:10
Showing 1 changed files
... ...
@@ -98,23 +98,21 @@ static inline char  *_mulle_vararg_aligned_pointer( mulle_vararg_list *args, uns
98 98
 }
99 99
 
100 100
 
101
-
102
-
103 101
 // use this for all pointer and id types
104
-#define mulle_vararg_next_pointer( args, type)                  \
102
+#define mulle_vararg_next_pointer( args, type)  \
105 103
    (*(type *) _mulle_vararg_aligned_pointer( &args, alignof( type)))
106 104
 
107 105
 // use this for objects types
108
-#define mulle_vararg_next( args)                               \
106
+#define mulle_vararg_next( args)                \
109 107
    mulle_vararg_next_pointer( args, id)
110 108
 
111 109
 // synonym
112
-#define mulle_vararg_next_object( args, type)                  \
110
+#define mulle_vararg_next_object( args, type)    \
113 111
    mulle_vararg_next_pointer( args, type)
114 112
 
115 113
 
116 114
 // use this for all struct types
117
-#define mulle_vararg_next_struct( args, type)                   \
115
+#define mulle_vararg_next_struct( args, type)    \
118 116
    (*(type *) _mulle_vararg_aligned_pointer( &args, alignof( type)))
119 117
 
120 118
 
... ...
@@ -135,9 +133,9 @@ static inline char  *_mulle_vararg_double_aligned_pointer( mulle_vararg_list *ar
135 133
 
136 134
 
137 135
 // need separate routine for FP arguments, as float promotes to double
138
-#define mulle_vararg_next_fp( args, type)                                                           \
139
-   (sizeof( type) < sizeof( double)                                                                 \
140
-      ? (type) *(int *) _mulle_vararg_double_aligned_pointer( &args, sizeof( type), alignof( type)) \
136
+#define mulle_vararg_next_fp( args, type)                                                              \
137
+   (sizeof( type) < sizeof( double)                                                                    \
138
+      ? (type) *(double *) _mulle_vararg_double_aligned_pointer( &args, sizeof( type), alignof( type)) \
141 139
       : *(type *) _mulle_vararg_double_aligned_pointer( &args, sizeof( type), alignof( type)))
142 140
 
143 141