view runtime/integer.c @ 58:4c22fe798779

Some small optimizations
author Mike Pavone <pavone@retrodev.com>
date Thu, 08 Oct 2009 03:03:48 -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;
}