diff options
author | metagn <metagngn@gmail.com> | 2023-05-30 22:29:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 21:29:38 +0200 |
commit | 20446b437bd6c35006fab78ed5e3bdd6f8056774 (patch) | |
tree | 8b7b3535d9cb46d4d420a2f6a460033bfdce05ac /lib/wrappers | |
parent | a9385a6b4ab0862512992b2adf75460cf0c4ce74 (diff) | |
download | Nim-20446b437bd6c35006fab78ed5e3bdd6f8056774.tar.gz |
make `proc` not implicitly convert to `pointer` with a preview define (#21953)
* test `proc` not converting to `pointer` * ignore define for now to test * remove cstring * fixes, changelog
Diffstat (limited to 'lib/wrappers')
-rw-r--r-- | lib/wrappers/openssl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index fcf52a8d9..fa72c6c24 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -589,7 +589,7 @@ when not useWinVersion and not defined(macosx) and not defined(android) and useN if p != nil: deallocShared(p) proc CRYPTO_malloc_init*() = - CRYPTO_set_mem_functions(allocWrapper, reallocWrapper, deallocWrapper) + CRYPTO_set_mem_functions(cast[pointer](allocWrapper), cast[pointer](reallocWrapper), cast[pointer](deallocWrapper)) else: proc CRYPTO_malloc_init*() = discard |