From 0b23bc6179b7a8e6c8664374d7d6f66fe9c9bdcb Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Fri, 20 Jan 2023 12:25:38 +0000 Subject: add PPCError error code enum --- compiler_and_linker/unsorted/PCodeAssembly.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler_and_linker/unsorted/PCodeAssembly.c') diff --git a/compiler_and_linker/unsorted/PCodeAssembly.c b/compiler_and_linker/unsorted/PCodeAssembly.c index 58a3d51..368f8c5 100644 --- a/compiler_and_linker/unsorted/PCodeAssembly.c +++ b/compiler_and_linker/unsorted/PCodeAssembly.c @@ -79,9 +79,9 @@ static SInt32 pcode_update_mem_labeldiff_imm(PCode *instr, const PCodeArg *op, W offset = -offset; if (offset > 0x7FFF) - PPCError_Error(109); + PPCError_Error(PPCErrorStr109); else if (offset < -0x8000) - PPCError_Error(109); + PPCError_Error(PPCErrorStr109); } else if (op->kind == PCOp_IMMEDIATE) { offset = op->data.imm.value; } else { @@ -1546,7 +1546,7 @@ SInt32 assemblefunction(Object *func, EntryPoint *entrypoints) { codesize = pccomputeoffsets(); if (codesize <= 0) - PPCError_Error(190, func->name->name); + PPCError_Error(PPCErrorStr190, func->name->name); if (copts.peephole || copts.optimizationlevel >= 3) codesize = optimizefinalbranches(codesize); -- cgit v1.2.3