nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: Revamp the C string to Nit string services to put forward the safest alternative
[nit.git]
/
lib
/
core
/
bytes.nit
diff --git
a/lib/core/bytes.nit
b/lib/core/bytes.nit
index
9bf70c0
..
5b5fceb
100644
(file)
--- a/
lib/core/bytes.nit
+++ b/
lib/core/bytes.nit
@@
-474,7
+474,7
@@
class Bytes
redef fun to_s do
persisted = true
var b = self
- var r = b.items.to_s_with_length(length)
+ var r = b.items.to_s_unsafe(length, copy=false)
if r != items then persisted = false
return r
end