diff options
-rw-r--r-- | lib/wrappers/openssl.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index 03d6755c3..dc9587d2c 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -427,11 +427,11 @@ when not useWinVersion and not defined(macosx) and not defined(android) and not dynlib: DLLUtilName, importc.} proc allocWrapper(size: int): pointer {.cdecl.} = allocShared(size) - proc reallocWrapper(p: pointer; newsize: int): pointer {.cdecl.} = + proc reallocWrapper(p: pointer; newSize: int): pointer {.cdecl.} = if p == nil: - if newSize > 0: result = allocShared(newsize) - elif newsize == 0: deallocShared(p) - else: result = reallocShared(p, newsize) + if newSize > 0: result = allocShared(newSize) + elif newSize == 0: deallocShared(p) + else: result = reallocShared(p, newSize) proc deallocWrapper(p: pointer) {.cdecl.} = if p != nil: deallocShared(p) |