From 8d537f014fa48728e432ec0eb6cfb50656257c7a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 1 Sep 2013 10:25:20 -0700 Subject: [PATCH] Fix some const char * conversion warnings. --- Core/MIPS/MIPSAsm.cpp | 2 +- Core/MIPS/MIPSAsmTables.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/MIPS/MIPSAsm.cpp b/Core/MIPS/MIPSAsm.cpp index 43eee6ae8..8cd848ecc 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 0f37ff6d9..bf44def7a 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;