Change over everything to sizeof intrinsic

This commit is contained in:
Nathan Braswell
2016-04-28 19:22:23 -04:00
parent 2051f54b55
commit 914fc57c13
4 changed files with 5 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ import mem
import serialize
fun to_string(in: int): string {
var dest = mem::new<char>(mem::sizeof<int>() * 8)
var dest = mem::new<char>(#sizeof<int> * 8)
defer mem::delete(dest)
__if_comp__ __C__ {
simple_passthrough(dest = dest, in = in::) """