Fix bug #1878285 - unnecessary cast for C struct creation wrappers.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-03-12 22:15:00 +00:00
commit 6f497c2807
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,9 @@
Version 1.3.35 (in progress)
============================
03/12/2008: wsfulton
Fix bug #1878285 - unnecessary cast for C struct creation wrappers.
03/12/2008: wsfulton
[Python] Remove debugging info when using shared_ptr support

View file

@ -465,14 +465,14 @@ static String *Swig_cmethod_call(String_or_char *name, ParmList *parms, String_o
*
* Creates a string that calls a C constructor function.
*
* (name *) calloc(1,sizeof(name));
* calloc(1,sizeof(name));
* ----------------------------------------------------------------------------- */
String *Swig_cconstructor_call(String_or_char *name) {
DOH *func;
func = NewStringEmpty();
Printf(func, "(%s *) calloc(1, sizeof(%s))", name, name);
Printf(func, "calloc(1, sizeof(%s))", name);
return func;
}