more fixes to MSC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
eee527b8b8
commit
0ee6a0446a
6 changed files with 21 additions and 8 deletions
|
|
@ -159,7 +159,7 @@ SWIG_From_dec(long long)(long long value)
|
|||
} else {
|
||||
char temp[256];
|
||||
SV *obj = sv_newmortal();
|
||||
snprintf(temp, sizeof(temp),"%lld", value);
|
||||
sprintf(temp, "%lld", value);
|
||||
sv_setpv(obj, temp);
|
||||
return obj;
|
||||
}
|
||||
|
|
@ -222,7 +222,7 @@ SWIG_From_dec(unsigned long long)(unsigned long long value)
|
|||
} else {
|
||||
char temp[256];
|
||||
SV *obj = sv_newmortal();
|
||||
snprintf(temp, sizeof(temp),"%llu", value);
|
||||
sprintf(temp, "%llu", value);
|
||||
sv_setpv(obj, temp);
|
||||
return obj;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,6 +176,10 @@ typedef int (*SwigMagicFuncHack)(struct interpreter *, SV *, MAGIC *);
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef SvUOK
|
||||
# define SvUOK(sv) SvIOK_UV(sv)
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
SWIGRUNTIME const char *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue