From d1931cc4994c2ee6adf8d611c9a59d5dbc9c0362 Mon Sep 17 00:00:00 2001 From: Siu Kwan Lam Date: Mon, 28 Jan 2013 15:20:07 -0600 Subject: [PATCH] Fix duplicated semicolon --- newbinding/codegen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/newbinding/codegen.py b/newbinding/codegen.py index 9398b14..2a85abc 100644 --- a/newbinding/codegen.py +++ b/newbinding/codegen.py @@ -184,14 +184,14 @@ class CppCodeWriter(CodeWriterBase): arglist = ', '.join(args[1:]) if func == 'delete': assert not arglist - stmt = 'delete %(this)s;' % locals() + stmt = 'delete %(this)s' % locals() elif func == 'new': alloctype = retty.rstrip(' *') - stmt = 'new %(alloctype)s(%(arglist)s);' % locals() + stmt = 'new %(alloctype)s(%(arglist)s)' % locals() else: - stmt = '%(this)s->%(func)s(%(arglist)s);' % locals() + stmt = '%(this)s->%(func)s(%(arglist)s)' % locals() if retty == 'void': - self.println(stmt) + self.println('%s;' % stmt) else: return self.declare(retty, stmt)