Minor fix to formatted I/O.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-11-22 22:57:27 +00:00
commit 9afcb30f8b

View file

@ -265,7 +265,7 @@ DohvPrintf(DOH *so, const char *format, va_list ap)
doh = va_arg(ap, DOH *);
if (DohCheck(doh)) {
/* Is a DOH object. */
if (DohIsString(doh)) {
if (DohIsString(doh) && (ObjType(doh) == DOHTYPE_STRING)) {
Sval = doh;
} else {
Sval = Str(doh);