warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4907d8c290
commit
e81b4cd86c
3 changed files with 5 additions and 5 deletions
|
|
@ -235,7 +235,7 @@ public:
|
|||
* ------------------------------------------------------------ */
|
||||
|
||||
void add_method(Node *n, const DOHString_or_char *name, const DOHString_or_char *function, const DOHString_or_char *description) {
|
||||
String *rename;
|
||||
String *rename = NULL;
|
||||
switch (current) {
|
||||
case NO_CPP:
|
||||
rename = NewString(name);
|
||||
|
|
|
|||
|
|
@ -186,8 +186,8 @@ public:
|
|||
flush_parens();
|
||||
// Following is a silly hack. It works around the limitation of
|
||||
// DOH's hash tables that only work with string keys!
|
||||
char address[16];
|
||||
sprintf(address, "%x%c", (unsigned long)obj, list_p ? 'L' : 'O');
|
||||
char address[32];
|
||||
sprintf(address, "%p%c", obj, list_p ? 'L' : 'O');
|
||||
DOH *placeholder = Getattr(print_circle_hash, address);
|
||||
if (placeholder) {
|
||||
Printv(out, placeholder, NIL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue