Skip to content

Commit

Permalink
refs modelica#3503: End trailing newline in message (modelica#3644)
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Oct 26, 2020
1 parent aa92ae0 commit 1adccd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modelica/Resources/C-Sources/ModelicaStrings.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ _Ret_z_ const char* ModelicaStrings_substring(_In_z_ const char* string,
/* Check arguments */
if (startIndex < 1) {
ModelicaFormatWarning("Non-positive startIndex (= %d) of Utilities.Strings.substring "
"was set to 1.", startIndex);
"was set to 1.\n", startIndex);
startIndex = 1;
}
else if (startIndex > len) {
return "";
}
if (endIndex < 0) {
ModelicaFormatWarning("Negative endIndex (= %d) of Utilities.Strings.substring "
"was set to %d.", endIndex, startIndex);
"was set to %d.\n", endIndex, startIndex);
endIndex = startIndex;
}
else if (endIndex < startIndex) {
Expand Down

0 comments on commit 1adccd9

Please sign in to comment.