diff --git a/.travis.yml b/.travis.yml index d175f7fa42..d70d58bbbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,8 @@ script: ls -la v.exe echo "Running v test v..." ./v.exe test v + echo "Running v -os msvc test v..." + ./v -os msvc test v ##echo "Running only the repl tests directly" ##./v.exe ./compiler/tests/repl/repl_test.v echo "Testing gcc bootstrapping" diff --git a/vlib/builtin/array.v b/vlib/builtin/array.v index b2d949625f..5d8bb61d70 100644 --- a/vlib/builtin/array.v +++ b/vlib/builtin/array.v @@ -22,7 +22,7 @@ fn new_array(mylen, cap, elm_size int) array { len: mylen cap: cap element_size: elm_size - data: malloc(cap * elm_size) + data: calloc(cap * elm_size) } return arr }