2013-09-26 17:14:40 +02:00

16 lines
623 B
Plaintext

$NetBSD: patch-ao,v 1.3 2011/07/02 22:19:30 dholland Exp $
- don't truncate intptr_t to int
--- Amaya/thotlib/base/structlist.c.orig 2009-10-26 15:53:57.000000000 +0000
+++ Amaya/thotlib/base/structlist.c
@@ -596,7 +596,7 @@ static void WrTree (PtrElement pNode, in
switch (pAttr1->AttrType)
{
case AtNumAttr:
- fprintf (fileDescriptor, "%d", (int)pAttr->AeAttrValue);
+ fprintf (fileDescriptor, "%lld", (long long)pAttr->AeAttrValue);
break;
case AtTextAttr:
if (pAttr->AeAttrText)