From 52ff4173677c52f4d946be1480925d9bfa91fa39 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 6 Jan 2024 05:42:59 -0500 Subject: [PATCH] Fix Bug --- src/vtable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vtable.ts b/src/vtable.ts index f0889d4..f56bd20 100644 --- a/src/vtable.ts +++ b/src/vtable.ts @@ -170,7 +170,7 @@ export class VTable implements Property { declarations += `${INDENT}if (obj == NULL) {\n`; declarations += `${INDENT}${INDENT}return NULL;\n`; declarations += `${INDENT}}\n`; - declarations += `${INDENT}memcpy((void *) obj, (void *) vtable, sizeof (${this.#getName()});\n`; + declarations += `${INDENT}memcpy((void *) obj, (void *) vtable, sizeof (${this.#getName()}));\n`; declarations += `${INDENT}return obj;\n`; declarations += '}\n'; }