Skip to content

Commit

Permalink
Merge pull request #20 from narimiran/cuchar-fix
Browse files Browse the repository at this point in the history
fix type mismatch
  • Loading branch information
arnetheduck committed Jun 7, 2021
2 parents ba68572 + 1a0401d commit dc62f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bearssl/decls.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc62f4f

Please sign in to comment.