From ca1c2054411b1658d38225ee20fb702e405ca284 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Wed, 22 Feb 2023 09:11:32 +0100 Subject: [PATCH] fix missing gcsafe (#591) --- eth/db/kvstore_sqlite3.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/db/kvstore_sqlite3.nim b/eth/db/kvstore_sqlite3.nim index 9b3a67c..6b07655 100644 --- a/eth/db/kvstore_sqlite3.nim +++ b/eth/db/kvstore_sqlite3.nim @@ -649,7 +649,7 @@ proc openKvStore*( tmp = SqKeyspace() # make close harmless ok res -proc customScalarBlobFunction(ctx: ptr sqlite3_context, n: cint, v: ptr ptr sqlite3_value) {.cdecl.} = +proc customScalarBlobFunction(ctx: ptr sqlite3_context, n: cint, v: ptr ptr sqlite3_value) {.cdecl, callback.} = let ptrs = cast[ptr UncheckedArray[ptr sqlite3_value]](v) let blob1 = cast[ptr UncheckedArray[byte]](sqlite3_value_blob(ptrs[][0])) let blob2 = cast[ptr UncheckedArray[byte]](sqlite3_value_blob(ptrs[][1]))