Skip to content

Commit 7ce15cf

Browse files
committed
Build fix for UnsafeRawPointer. It has no 'successor'
1 parent a4eaaca commit 7ce15cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PlaygroundLogger/PlaygroundLogger/ExtensionUInt64.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension UInt64 : Serializable {
2626
var up_byte = UnsafeRawPointer(up_int)
2727
8.doFor {
2828
ret.append(up_byte.load(as: UInt8.self))
29-
up_byte = up_byte.successor()
29+
up_byte += 1
3030
}
3131
return ret
3232
}
@@ -39,7 +39,7 @@ extension UInt64 : Serializable {
3939
var up_byte = UnsafeRawPointer(up_int)
4040
8.doFor {
4141
ret.append(up_byte.load(as: UInt8.self))
42-
up_byte = up_byte.successor()
42+
up_byte += 1
4343
}
4444
return ret
4545
}

0 commit comments

Comments
 (0)