nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: update test_c and test_nitunit4 to get reproducible outputs
[nit.git]
/
tests
/
shootout_nsieve_bytes_alt.nit
diff --git
a/tests/shootout_nsieve_bytes_alt.nit
b/tests/shootout_nsieve_bytes_alt.nit
index
b5ad0cb
..
6a05c79
100644
(file)
--- a/
tests/shootout_nsieve_bytes_alt.nit
+++ b/
tests/shootout_nsieve_bytes_alt.nit
@@
-39,7
+39,7
@@
fun nsieve(n: Int): Int
do
var count = 0
var b_arrsz = ((n - 1).to_f / 8.0).ceil.to_i
do
var count = 0
var b_arrsz = ((n - 1).to_f / 8.0).ceil.to_i
- var bitarr = new Bitarray(new Bytes(new NativeString(b_arrsz), b_arrsz, b_arrsz))
+ var bitarr = new Bitarray(new Bytes(new CString(b_arrsz), b_arrsz, b_arrsz))
for i in [2 .. n[ do
# If self is already false, then no need to check for multiples
if not bitarr[i] then continue
for i in [2 .. n[ do
# If self is already false, then no need to check for multiples
if not bitarr[i] then continue