summaryrefslogtreecommitdiff
path: root/Source/Swig/cwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Swig/cwrap.c')
-rw-r--r--Source/Swig/cwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Swig/cwrap.c b/Source/Swig/cwrap.c
index 49d2c1e9b..0f99cef64 100644
--- a/Source/Swig/cwrap.c
+++ b/Source/Swig/cwrap.c
@@ -285,7 +285,7 @@ String *Swig_cresult(SwigType *t, const_String_or_char_ptr name, const_String_or
/* A sick hack */
{
- char *c = Char(decl) + Len(decl) - 1;
+ const char *c = Char(decl) + Len(decl) - 1;
if (!((*c == ';') || (*c == '}')))
Append(fcall, ";");
}