Skip to content

Commit

Permalink
Fix some constant string type in Script_Compiler
Browse files Browse the repository at this point in the history
Signed-off-by: XoD <xoddark@gmail.com>
  • Loading branch information
XoD committed Dec 21, 2011
1 parent dfa3aca commit f061e0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion neo/d3xp/script/Script_Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If you have questions concerning this license or the applicable additional terms
#define TOP_PRIORITY 7

bool idCompiler::punctuationValid[ 256 ];
char *idCompiler::punctuation[] = {
const char *idCompiler::punctuation[] = {
"+=", "-=", "*=", "/=", "%=", "&=", "|=", "++", "--",
"&&", "||", "<=", ">=", "==", "!=", "::", ";", ",",
"~", "!", "*", "/", "%", "(", ")", "-", "+",
Expand Down
6 changes: 3 additions & 3 deletions neo/d3xp/script/Script_Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ If you have questions concerning this license or the applicable additional terms
const char * const RESULT_STRING = "<RESULT>";

typedef struct opcode_s {
char *name;
char *opname;
const char *name;
const char *opname;
int priority;
bool rightAssociative;
idVarDef *type_a;
Expand Down Expand Up @@ -197,7 +197,7 @@ enum {
class idCompiler {
private:
static bool punctuationValid[ 256 ];
static char *punctuation[];
static const char *punctuation[];

idParser parser;
idParser *parserPtr;
Expand Down

0 comments on commit f061e0f

Please sign in to comment.