Mercurial > repos > rhope
comparison runtime/integer.c @ 63:04baa003de5a
Merged latest changes with better C branch
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 05 May 2010 22:12:23 -0400 |
parents | d2f9b0a9403d a24eb366195c |
children |
comparison
equal
deleted
inserted
replaced
62:b218af069da7 | 63:04baa003de5a |
---|---|
1 #include "integer.h" | 1 #include "integer.h" |
2 #include "builtin.h" | 2 #include "builtin.h" |
3 #include "context.h" | 3 #include "context.h" |
4 #include "bool.h" | 4 #include "bool.h" |
5 | 5 |
6 object * make_Int32(int32_t val) | 6 |
7 { | |
8 t_Int32 * obj; | |
9 object * ret = new_object(TYPE_INT32); | |
10 obj = (t_Int32 *)ret; | |
11 obj->num = val; | |
12 return ret; | |
13 } |