OSDN Git Service

Correctly expect the return value of rindex(const char*) to be of type
authorScott Tsai <scottt.tw@gmail.com>
Fri, 20 Mar 2009 23:41:30 +0000 (07:41 +0800)
committerScott Tsai <scottt.tw@gmail.com>
Fri, 20 Mar 2009 23:41:30 +0000 (07:41 +0800)
commitfa602acc7575c3b557f6e8f6aeac569ab99a3655
tree9090ebefb59edcef054b1baf12bec9f3122504cb
parentc4a2e5be95ea859203730b27bf074ba24b04b9ca
Correctly expect the return value of rindex(const char*) to be of type
'const char*' to make the code build on gcc-4.4.

The C++ spec overloads string fucntions like strtsr and rindex so that
rindex(char *) returns 'char*' and rindex(const char*) returns 'const
char*'.
Without this patch you get an "invalid conversion from ‘const char*’ to
‘char*’" error on gcc-4.4
emulator/qtools/trace_reader.cpp