Skip to content

Commit

Permalink
Switched to string() from c_str()
Browse files Browse the repository at this point in the history
tristanisham committed Mar 6, 2024
1 parent c0efc6e commit 7f2b2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/std/fs.cpp
Original file line number Diff line number Diff line change
@@ -231,8 +231,8 @@ void lib::fs::extension(WrenVM* vm) {

auto const target = wrenGetSlotString(vm, 1);
const std::filesystem::path input{target};
auto const ext = input.extension().c_str();
wrenSetSlotString(vm, 0, ext);
auto const ext = input.extension().string();
wrenSetSlotString(vm, 0, ext.c_str());
}

void lib::fs::mkdir(WrenVM* vm) {

0 comments on commit 7f2b2b1

Please sign in to comment.