summary refs log tree commit diff stats
path: root/lib/wrappers
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2023-05-30 22:29:38 +0300
committerGitHub <noreply@github.com>2023-05-30 21:29:38 +0200
commit20446b437bd6c35006fab78ed5e3bdd6f8056774 (patch)
tree8b7b3535d9cb46d4d420a2f6a460033bfdce05ac /lib/wrappers
parenta9385a6b4ab0862512992b2adf75460cf0c4ce74 (diff)
downloadNim-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.nim2
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