Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/robots Cast pointer diffs to long for printing with %ld.



details:   https://anonhg.NetBSD.org/src/rev/9a11aa6b1d63
branches:  trunk
changeset: 485429:9a11aa6b1d63
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Apr 27 19:31:23 2000 +0000

description:
Cast pointer diffs to long for printing with %ld.

diffstat:

 games/robots/score.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8a2a0b6b75fa -r 9a11aa6b1d63 games/robots/score.c
--- a/games/robots/score.c      Thu Apr 27 18:55:32 2000 +0000
+++ b/games/robots/score.c      Thu Apr 27 19:31:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: score.c,v 1.14 2000/04/27 00:30:53 jdc Exp $   */
+/*     $NetBSD: score.c,v 1.15 2000/04/27 19:31:23 thorpej Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)score.c    8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: score.c,v 1.14 2000/04/27 00:30:53 jdc Exp $");
+__RCSID("$NetBSD: score.c,v 1.15 2000/04/27 19:31:23 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -176,7 +176,7 @@
                if (!done_show && scp->s_uid == uid && scp->s_score == Score)
                        standout();
                printw("%5ld %5d %-8.8s %-9.9s %5d",
-                   (scp - Top) + 1, scp->s_score, scp->s_name,
+                   (long)(scp - Top) + 1, scp->s_score, scp->s_name,
                    scp->s_auto ? "(autobot)" : "", scp->s_level);
                if (!done_show && scp->s_uid == uid && scp->s_score == Score) {
                        standend();



Home | Main Index | Thread Index | Old Index