fix for dodgy gcc-2.96 compilers

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-06-16 21:21:21 +00:00
commit 635077a698
2 changed files with 2 additions and 2 deletions

View file

@ -1620,7 +1620,7 @@ class CSHARP : public Language {
if ((tm = Getattr(p,"tmap:cstype"))) {
substituteClassname(pt, tm);
String *inattributes = Getattr(p,"tmap:cstype:inattributes");
Printf(param_type, "%s%s", inattributes ? inattributes : empty_string, tm);
Printf(param_type, "%s%s", inattributes ? inattributes : empty_string, (const String *)tm);
} else {
Swig_warning(WARN_CSHARP_TYPEMAP_CSWTYPE_UNDEF, input_file, line_number,
"No cstype typemap defined for %s\n", SwigType_str(pt,0));

View file

@ -670,7 +670,7 @@ public:
if (maybe_delimiter && Len(output) > 0 && Len(tm) > 0) {
Printv(output, maybe_delimiter, NIL);
}
const String *pn = (name == NULL) ? Getattr(p,"name") : name;
const String *pn = (name == NULL) ? (const String *)Getattr(p,"name") : name;
String *pt = Getattr(p,"type");
Replaceall(tm, "$name", pn); // legacy for $parmname
Replaceall(tm, "$type", SwigType_str(pt,0));