fix NULL when using ~d to write negative numbers
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1464 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
83b5a160f8
commit
0e6cb326da
@ -4066,7 +4066,7 @@ format(volatile Term otail, volatile Term oargs, int sno)
|
||||
char *ptr = tmp1;
|
||||
|
||||
if (IsIntegerTerm(t)) {
|
||||
UInt il = IntegerOfTerm(t);
|
||||
Int il = IntegerOfTerm(t);
|
||||
#if HAVE_SNPRINTF
|
||||
snprintf(tmp1, 256, "%d", il);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user