diff --git a/leopard/leopard.nim b/leopard/leopard.nim index dd749b9..615f7ad 100644 --- a/leopard/leopard.nim +++ b/leopard/leopard.nim @@ -77,7 +77,7 @@ func encode*( self.buffers.cuint, self.parity.cuint, self.workBufferCount.cuint, - cast[ptr pointer](addr self.dataBufferPtr[0]), + cast[LeoDataPtr](addr self.dataBufferPtr[0]), cast[ptr pointer](addr self.workBufferPtr[0])) if ord(res) != ord(LeopardSuccess): @@ -148,8 +148,8 @@ func decode*( self.buffers.cuint, self.parity.cuint, self.decodeBufferCount.cuint, - cast[ptr pointer](addr dataPtr[0]), - cast[ptr pointer](addr parityPtr[0]), + cast[LeoDataPtr](addr dataPtr[0]), + cast[LeoDataPtr](addr parityPtr[0]), cast[ptr pointer](addr self.decodeBufferPtr[0])) if ord(res) != ord(LeopardSuccess): diff --git a/leopard/wrapper.nim b/leopard/wrapper.nim index 5efbf1b..90d8b5a 100644 --- a/leopard/wrapper.nim +++ b/leopard/wrapper.nim @@ -68,7 +68,7 @@ import std/os import std/strutils type - LeoDataPtr* {.importc: "const void* const * const", bycopy.} = pointer + LeoDataPtr* {.importc: "const void* const*", bycopy.} = pointer const LeopardCmakeFlags {.strdefine.} =