Fix Bug
This commit is contained in:
parent
c7af1c95d2
commit
52ff417367
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user