Skip to content

Commit eb77692

Browse files
committed
Made error helper macros template functions.
They mistakenly were normal functions before, leading to undefined symbols.
1 parent 0ce8488 commit eb77692

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deimos/openssl/err.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ auto ERR_PACK()(c_ulong l, c_ulong f, c_ulong r) {
249249
(((f)&0xfffL)*0x1000)|
250250
(((r)&0xfffL)));
251251
}
252-
auto ERR_GET_LIB(c_ulong l) { return cast(int)(((l)>>24L)&0xffL); }
253-
auto ERR_GET_FUNC(c_ulong l) { return cast(int)(((l)>>12L)&0xfffL); }
254-
auto ERR_GET_REASON(c_ulong l) { return cast(int)((l)&0xfffL); }
255-
auto ERR_FATAL_ERROR(c_ulong l) { return cast(int)((l)&ERR_R_FATAL); }
252+
auto ERR_GET_LIB()(c_ulong l) { return cast(int)(((l)>>24L)&0xffL); }
253+
auto ERR_GET_FUNC()(c_ulong l) { return cast(int)(((l)>>12L)&0xfffL); }
254+
auto ERR_GET_REASON()(c_ulong l) { return cast(int)((l)&0xfffL); }
255+
auto ERR_FATAL_ERROR()(c_ulong l) { return cast(int)((l)&ERR_R_FATAL); }
256256

257257

258258
/* OS functions */

0 commit comments

Comments
 (0)