https://github.com/JuliaLang/julia
Revision 63a72d1499b7c216f8361cf6cf76b35a6d0343e7 authored by Milan Bouchet-Valat on 16 February 2018, 22:36:39 UTC, committed by Milan Bouchet-Valat on 14 March 2018, 20:32:13 UTC
Else we set the last element to zero for one-byte element types like UInt8,
which means that resizing a vector allocated with StringVector corrupts it.
Also add redundant checks in Julia code to avoid a function call.
1 parent 03bd792
History
Tip revision: 63a72d1499b7c216f8361cf6cf76b35a6d0343e7 authored by Milan Bouchet-Valat on 16 February 2018, 22:36:39 UTC
Make resize! a no-op when size does not change
Tip revision: 63a72d1
File Mode Size
.circleci
.github
base
contrib
deps
doc
etc
src
stdlib
test
ui
.freebsdci.sh -rwxr-xr-x 1.0 KB
.gitattributes -rw-r--r-- 67 bytes
.gitignore -rw-r--r-- 213 bytes
.mailmap -rw-r--r-- 9.5 KB
.travis.yml -rw-r--r-- 6.5 KB
CONTRIBUTING.md -rw-r--r-- 20.4 KB
DISTRIBUTING.md -rw-r--r-- 23.6 KB
HISTORY.md -rw-r--r-- 144.9 KB
LICENSE.md -rw-r--r-- 5.4 KB
Make.inc -rw-r--r-- 35.1 KB
Makefile -rw-r--r-- 25.5 KB
NEWS.md -rw-r--r-- 74.1 KB
README.arm.md -rw-r--r-- 5.7 KB
README.md -rw-r--r-- 29.7 KB
README.windows.md -rw-r--r-- 13.0 KB
VERSION -rw-r--r-- 10 bytes
Windows.inc -rw-r--r-- 1.5 KB
appveyor.yml -rw-r--r-- 2.2 KB

README.md

back to top