view runtime/integer.c @ 60:b2a95ab818d3

merge
author Mike Pavone <pavone@retrodev.com>
date Thu, 08 Oct 2009 22:54:39 -0400
parents d2f9b0a9403d
children 04baa003de5a
line wrap: on
line source

#include "integer.h"
#include "builtin.h"
#include "context.h"
#include "bool.h"

object * make_Int32(int32_t val)
{
	t_Int32 * obj;
	object * ret = new_object(TYPE_INT32);
	obj = (t_Int32 *)ret;
	obj->num = val;
	return ret;
}