set the refcount of the input

This commit is contained in:
Folkert 2021-02-10 22:37:40 +01:00
parent 4d2c807570
commit a392ef2419

View File

@ -22,6 +22,10 @@ pub export fn main() i32 {
const stderr = std.io.getStdErr().writer();
var raw_numbers: [NUM_NUMS + 1]i64 = undefined;
// set refcount to one
raw_numbers[0] = -9223372036854775808;
var numbers = raw_numbers[1..];
for (numbers) |x, i| {