Skip to content

Commit 6c37949

Browse files
committed
std.path: make .ptr access trusted
1 parent 9a00cb5 commit 6c37949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/path.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3269,7 +3269,7 @@ body
32693269
/* Match for:
32703270
* pattern[pi0..pi-1] ~ pattern[piRemain..$]
32713271
*/
3272-
if (pattmp.ptr == null)
3272+
if (pattmp is null)
32733273
// Allocate this only once per function invocation.
32743274
// Should do it with malloc/free, but that would make it impure.
32753275
pattmp = new C[pattern.length];

0 commit comments

Comments
 (0)