Cast pointer difference to long when printing w/ %ld.
This commit is contained in:
parent
699c904e5e
commit
29eeaf21f2
@ -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 @@ prboard()
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user