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]))