Commit b80adacd authored by Kevin Rocard's avatar Kevin Rocard
Browse files

Fix pointer arithmetic instead of concat



`"my number " + 5` does not produces `"my number 5"` but rather `"mber "`.
If the number was greater than `len(string) + 2`
(pointing to the \0 and one past the end in authorized, more in UB)
the result would have been undefined behaviour.

Transforme the number to std::string using toString.

Signed-off-by: default avatarKevin Rocard <kevin.rocard@intel.com>
parent 84709c9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment