summaryrefslogtreecommitdiff
path: root/libgpython/runtime/obj-integer.c
diff options
context:
space:
mode:
authorredbrain <redbrain@gcc.gnu.org>2011-02-08 05:18:09 +0000
committerredbrain <redbrain@gcc.gnu.org>2011-02-08 05:18:09 +0000
commit151984e6ee3d9a8e27c35f96b5a8283776a6559c (patch)
treed0ef524d2742858626c1d2b06767787672d1d3a7 /libgpython/runtime/obj-integer.c
parentd4833373db1591ed6783925557780d3dab7852dc (diff)
downloadgcc-151984e6ee3d9a8e27c35f96b5a8283776a6559c.tar.gz
huge refactors to how dynamic typing works etc
Diffstat (limited to 'libgpython/runtime/obj-integer.c')
-rw-r--r--libgpython/runtime/obj-integer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgpython/runtime/obj-integer.c b/libgpython/runtime/obj-integer.c
index fe4dd964bd9..b9fbdbcfbbe 100644
--- a/libgpython/runtime/obj-integer.c
+++ b/libgpython/runtime/obj-integer.c
@@ -45,12 +45,12 @@ class foo:
Where program wise __init__ is called and the instance
of the object is created as gpy_object_state_t *
*/
-gpy_object_t * gpy_obj_integer_init (gpy_type_obj_def_t * type,
+gpy_object_t * gpy_obj_integer_init (gpy_typedef_t * type,
gpy_object_t ** args)
{
gpy_object_t * retval = NULL_OBJECT;
- bool check = gpy_args_check_fmt (args, "i.");
+ bool check = gpy_args_check_fmt (args, "i");
gpy_assert(check);
int val = gpy_args_lit_parse_int (args[0]);
@@ -115,7 +115,7 @@ static struct gpy_number_prot_t integer_binary_ops = {
NULL,
};
-static struct gpy_type_obj_def_t integer_obj = {
+static struct gpy_typedef_t integer_obj = {
"Int",
sizeof(struct gpy_obj_integer_t),
gpy_obj_integer_init,