Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

const_cast<char *>()

  • Loading branch information...
commit 46c122a9d3a225fa829dae3f16bb09d9eb13891f 1 parent cde6411
thenihilist authored
Showing with 13 additions and 13 deletions.
  1. +1 −1  boomerang.cpp
  2. +12 −12 db/signature.cpp
View
2  boomerang.cpp
@@ -1280,5 +1280,5 @@ void Boomerang::alert_decompile_debug_point(UserProc *p, const char *description
}
char* Boomerang::getVersionStr() {
- return VERSION;
+ return const_cast<char *>(VERSION);
}
View
24 db/signature.cpp
@@ -47,23 +47,23 @@ extern char debug_buffer[]; // For prints()
char* Signature::platformName(platform plat) {
switch (plat) {
- case PLAT_PENTIUM: return "pentium";
- case PLAT_SPARC: return "sparc";
- case PLAT_M68K: return "m68k";
- case PLAT_PARISC: return "parisc";
- case PLAT_PPC: return "ppc";
- case PLAT_MIPS: return "mips";
- case PLAT_ST20: return "st20";
- default: return "???";
+ case PLAT_PENTIUM: return const_cast<char *>("pentium");
+ case PLAT_SPARC: return const_cast<char *>("sparc");
+ case PLAT_M68K: return const_cast<char *>("m68k");
+ case PLAT_PARISC: return const_cast<char *>("parisc");
+ case PLAT_PPC: return const_cast<char *>("ppc");
+ case PLAT_MIPS: return const_cast<char *>("mips");
+ case PLAT_ST20: return const_cast<char *>("st20");
+ default: return const_cast<char *>("???");
}
}
char* Signature::conventionName(callconv cc) {
switch (cc) {
- case CONV_C: return "stdc";
- case CONV_PASCAL: return "pascal";
- case CONV_THISCALL: return "thiscall";
- default: return "??";
+ case CONV_C: return const_cast<char *>("stdc");
+ case CONV_PASCAL: return const_cast<char *>("pascal");
+ case CONV_THISCALL: return const_cast<char *>("thiscall");
+ default: return const_cast<char *>("??");
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.