Skip to content

Commit

Permalink
Only take C strings from ref
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed May 31, 2024
1 parent 116edd7 commit d293913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/numem/mem/string.d
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public:
Creates a string with specified text
*/
@system
this(const(char)* text) {
this(ref const(char)* text) {
import core.stdc.string : strlen;
size_t len = strlen(text);
this.set_(text[0..len]);
Expand Down

0 comments on commit d293913

Please sign in to comment.