Skip to content

Commit

Permalink
Improved string performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Lartu committed Jun 9, 2024
1 parent bb4d86c commit 9e87581
Show file tree
Hide file tree
Showing 5 changed files with 2,223 additions and 1,872 deletions.
2 changes: 1 addition & 1 deletion src/aux/aux_code.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void add_call_code(string &subprocedure, vector<string> &parameters,
// C++ doen't allow passing literals in reference parameters, we create
// vars for them
string literal_paramater_var = state.new_literal_parameter_var();
state.add_code((is_number(parameters[i]) ? "ldpl_number " : "chText ") +
state.add_code((is_number(parameters[i]) ? "ldpl_number " : "graphemedText ") +
literal_paramater_var + " = " + parameters[i] + ";",
state.where);
code += literal_paramater_var;
Expand Down
Loading

0 comments on commit 9e87581

Please sign in to comment.