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'; }