Skip to content

Commit

Permalink
chore(iosMain/Base64): use unsigned zero for NSData.create call
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kesselring authored and Marcel Kesselring committed Oct 23, 2023
1 parent fa3e8d4 commit d360bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iosMain/kotlin/com/liftric/cognito/idp/jwt/Base64.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal actual class Base64 {
if (remainder > 0) {
encoded64 = encoded64.padEnd(input.count() + (4 - remainder), '=')
}
return NSData.create(encoded64, 0)?.let {
return NSData.create(encoded64, 0u)?.let {
@Suppress("USELESS_CAST") // false positive inspection: konan fails if the cast is removed
(NSString.create(it, NSUTF8StringEncoding) as String?)
}?: run {
Expand Down

0 comments on commit d360bb7

Please sign in to comment.