fix missing gcsafe (#591)

This commit is contained in:
Jacek Sieka 2023-02-22 09:11:32 +01:00 committed by GitHub
parent ade6d19691
commit ca1c205441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ proc openKvStore*(
tmp = SqKeyspace() # make close harmless tmp = SqKeyspace() # make close harmless
ok res 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 ptrs = cast[ptr UncheckedArray[ptr sqlite3_value]](v)
let blob1 = cast[ptr UncheckedArray[byte]](sqlite3_value_blob(ptrs[][0])) let blob1 = cast[ptr UncheckedArray[byte]](sqlite3_value_blob(ptrs[][0]))
let blob2 = cast[ptr UncheckedArray[byte]](sqlite3_value_blob(ptrs[][1])) let blob2 = cast[ptr UncheckedArray[byte]](sqlite3_value_blob(ptrs[][1]))