The 'substr()' function is defined wrong
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
The string function substr() is defined wrong. It is not possible to extract a string with length zero, instead the zero is converted into the length of the string.
This is a simple fix. In the string function for substr() (function name static string strfnc_substr()), one has to add a case for the string length zero (funcArgs.nArg2), which will return the value "\"\"" instead of the already existing solution.
This fix was added to the automatic SW tests. No deviations detected.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r416]
Diff: