Another 64 bit issue.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sun, 7 Apr 2013 14:21:48 +0000 (16:21 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sun, 7 Apr 2013 14:21:48 +0000 (16:21 +0200)
rip.c

diff --git a/rip.c b/rip.c
index 1d9d6744848219f297a6e5cf54fac4bae8632706..43240e10ec942898a3d261627d1859d2a8169ce9 100644 (file)
--- a/rip.c
+++ b/rip.c
@@ -198,7 +198,7 @@ char monst;
     printf("Top Ten Adventurers:\nRank\tScore\tName\n");\r
     for (scp = top_ten; scp <= &top_ten[9]; scp++) {\r
        if (scp->sc_score) {\r
-           printf("%ld\t%d\t%s: %s on level %d", scp - top_ten + 1,\r
+           printf("%d\t%d\t%s: %s on level %d", (int)(scp - top_ten + 1),\r
                scp->sc_score, scp->sc_name, reason[scp->sc_flags],\r
                scp->sc_level);\r
            if (scp->sc_flags == 0) {\r