Skip to content

Commit

Permalink
Update stdlib/public/core/KeyPath.swift
Browse files Browse the repository at this point in the history
Co-Authored-By: Max Desiatov <[email protected]>
  • Loading branch information
kateinoigakukun and MaxDesiatov authored Feb 26, 2020
1 parent b425d02 commit 60186b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/public/core/KeyPath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2545,7 +2545,7 @@ internal func _resolveRelativeAddress(_ base: UnsafeRawPointer,
_ offset: Int32) -> UnsafeRawPointer {
#if arch(wasm32)
// FIXME: If offset is 0, it means the pointer is null.
// For real relative pointer, it always calculate valid non-null address
// For real relative pointer, it always calculates valid non-null address
// because the base address is always valid.
// But hacked absolute pointer can be null pointer.
// The return type doesn't allow nil, so return given base temporarily.
Expand Down

0 comments on commit 60186b6

Please sign in to comment.