Make unwrap and unwrap_object less generic.

This commit is contained in:
Ms2ger 2014-03-20 23:26:22 +01:00
parent a4fc6961a8
commit 6ee2e29e62
2 changed files with 6 additions and 6 deletions

View file

@ -2648,7 +2648,7 @@ class CGAbstractBindingMethod(CGAbstractExternMethod):
" return false as JSBool;\n"
"}\n"
"\n"
"let this: *%s;" % self.descriptor.concreteType))
"let this: *mut %s;" % self.descriptor.concreteType))
def generate_code(self):
assert(False) # Override me
@ -4156,7 +4156,7 @@ class CGAbstractClassHook(CGAbstractExternMethod):
def definition_body_prologue(self):
return """
let this: *%s = unwrap::<*%s>(obj);
let this: *mut %s = unwrap::<%s>(obj);
""" % (self.descriptor.concreteType, self.descriptor.concreteType)
def definition_body(self):