From: Stefan Behnel Date: Wed, 27 Apr 2011 07:19:44 +0000 (+0200) Subject: C++ const fix in test X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20449d802568a8854ca929f05958abc4f0d482f3;p=cython.git C++ const fix in test --- diff --git a/tests/run/arithmetic_analyse_types_helper.h b/tests/run/arithmetic_analyse_types_helper.h index 72145c95..15f9460c 100644 --- a/tests/run/arithmetic_analyse_types_helper.h +++ b/tests/run/arithmetic_analyse_types_helper.h @@ -1,26 +1,26 @@ /* A set of mutually incompatable return types. */ -struct short_return { const char *msg; }; -struct int_return { const char *msg; }; -struct longlong_return { const char *msg; }; +struct short_return { char *msg; }; +struct int_return { char *msg; }; +struct longlong_return { char *msg; }; /* A set of overloaded methods. */ short_return f(short arg) { short_return val; - val.msg = "short called"; + val.msg = (char*)"short called"; return val; } int_return f(int arg) { int_return val; - val.msg = "int called"; + val.msg = (char*)"int called"; return val; } longlong_return f(long long arg) { longlong_return val; - val.msg = "long long called"; + val.msg = (char*)"long long called"; return val; }