Skip to content

Commit

Permalink
Update deprecation-warning.cpp (ggerganov#10619)
Browse files Browse the repository at this point in the history
Fixed Path Separator Handling for Cross-Platform Support (Windows File Systems)
  • Loading branch information
aryantandon01 authored Dec 4, 2024
1 parent 1da7b76 commit f112d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/deprecation-warning/deprecation-warning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main(int argc, char** argv) {
}

// Get only the program name from the full path
auto pos = filename.find_last_of('/');
auto pos = filename.find_last_of("/\\");
if (pos != std::string::npos) {
filename = filename.substr(pos+1);
}
Expand Down

0 comments on commit f112d19

Please sign in to comment.