Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 49f9d5d

Browse files
authored
Merge pull request #1626 from WalterBright/hash-safe
hash.d: make .ptr @safe
2 parents c1f2857 + bb76410 commit 49f9d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/internal/hash.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,5 +529,5 @@ pure nothrow @safe @nogc unittest
529529

530530
enum test_str = "Sample string";
531531
enum size_t hashVal = ctfeHash(test_str);
532-
assert(hashVal == bytesHash(test_str.ptr, test_str.length));
532+
assert(hashVal == bytesHash(&test_str[0], test_str.length));
533533
}

0 commit comments

Comments
 (0)