Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/mille Cast pointer difference to long when printing w/...
details: https://anonhg.NetBSD.org/src/rev/d10d85362df7
branches: trunk
changeset: 485426:d10d85362df7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Apr 27 17:49:15 2000 +0000
description:
Cast pointer difference to long when printing w/ %ld.
diffstat:
games/mille/print.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2e6e8bbdb891 -r d10d85362df7 games/mille/print.c
--- a/games/mille/print.c Thu Apr 27 17:38:30 2000 +0000
+++ b/games/mille/print.c Thu Apr 27 17:49:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.9 2000/04/27 00:30:52 jdc Exp $ */
+/* $NetBSD: print.c,v 1.10 2000/04/27 17:49:15 thorpej Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: print.c,v 1.9 2000/04/27 00:30:52 jdc Exp $");
+__RCSID("$NetBSD: print.c,v 1.10 2000/04/27 17:49:15 thorpej Exp $");
#endif
#endif /* not lint */
@@ -89,7 +89,7 @@
pp = &Player[PLAYER];
for (i = 0; i < HAND_SZ; i++)
show_card(i + 6, temp, pp->hand[i], &pp->sh_hand[i]);
- mvprintw(6, COMP_STRT + CARD_STRT, "%2ld", Topcard - Deck);
+ mvprintw(6, COMP_STRT + CARD_STRT, "%2ld", (long)(Topcard - Deck));
show_card(8, COMP_STRT + CARD_STRT, Discard, &Sh_discard);
if (End == 1000) {
move(EXT_Y, EXT_X);
Home |
Main Index |
Thread Index |
Old Index