This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ T va_arg(T)(ref va_list ap)
70
70
else
71
71
alias FundamentalType = ArgTypes[0 ];
72
72
73
- static if (__traits(isFloating, FundamentalType) || isVectorType ! FundamentalType)
73
+ static if (__traits(isFloating, FundamentalType) || is ( FundamentalType == __vector ) )
74
74
{
75
75
import core.stdc.string : memcpy;
76
76
Original file line number Diff line number Diff line change @@ -186,14 +186,16 @@ T va_arg(T)(ref va_list ap)
186
186
ap += T.sizeof;
187
187
return * p;
188
188
}
189
-
190
- // passed indirectly by value if > 64 bits or of a size that is not a power of 2
191
- static if (T.sizeof > size_t .sizeof || (T.sizeof & (T.sizeof - 1 )) != 0 )
192
- auto p = * cast (T** ) ap;
193
189
else
194
- auto p = cast (T* ) ap;
195
- ap += size_t .sizeof;
196
- return * p;
190
+ {
191
+ // passed indirectly by value if > 64 bits or of a size that is not a power of 2
192
+ static if (T.sizeof > size_t .sizeof || (T.sizeof & (T.sizeof - 1 )) != 0 )
193
+ auto p = * cast (T** ) ap;
194
+ else
195
+ auto p = cast (T* ) ap;
196
+ ap += size_t .sizeof;
197
+ return * p;
198
+ }
197
199
}
198
200
else version (SysV_x64)
199
201
{
You can’t perform that action at this time.
0 commit comments