Upgrade libnum
write! takes its argument by &mut