mirror of
https://github.com/logos-storage/nim-bearssl.git
synced 2026-01-06 23:43:11 +00:00
fix type mismatch
This commit is contained in:
parent
0a7401ad46
commit
1a0401d6d0
@ -2402,7 +2402,7 @@ proc skeyDecoderPush*(ctx: ptr SkeyDecoderContext; data: pointer; len: int) {.be
|
||||
proc skeyDecoderLastError*(ctx: ptr SkeyDecoderContext): cint {.inline.} =
|
||||
if ctx.err != 0:
|
||||
return ctx.err
|
||||
if ctx.keyType == '\0':
|
||||
if ctx.keyType == '\0'.cuchar:
|
||||
return ERR_X509_TRUNCATED
|
||||
return 0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user