diff --git a/Core/MIPS/MIPSAsm.cpp b/Core/MIPS/MIPSAsm.cpp index 43eee6ae84..8cd848ecc9 100644 --- a/Core/MIPS/MIPSAsm.cpp +++ b/Core/MIPS/MIPSAsm.cpp @@ -198,7 +198,7 @@ bool CMipsInstruction::LoadEncoding(const tMipsOpcode& SourceOpcode, char* Line) int RetLen; bool Immediate = false; - char* SourceEncoding = SourceOpcode.encoding; + const char *SourceEncoding = SourceOpcode.encoding; char* OriginalLine = Line; while (*Line == ' ' || *Line == '\t') Line++; diff --git a/Core/MIPS/MIPSAsmTables.h b/Core/MIPS/MIPSAsmTables.h index 0f37ff6d9d..bf44def7a1 100644 --- a/Core/MIPS/MIPSAsmTables.h +++ b/Core/MIPS/MIPSAsmTables.h @@ -4,14 +4,14 @@ namespace MIPSAsm { typedef struct { - char* name; - char* encoding; + const char *name; + const char *encoding; unsigned int destencoding; unsigned int flags; } tMipsOpcode; typedef struct { - char* name; + const char *name; short num; short len; } tMipsRegister;