lint follow up

Janet wrote:
>There is one more new complaint that might cause problems:
>explode.c(545): warning: conversion from long may lose accuracy
This commit is contained in:
nethack.allison
2003-02-19 05:12:31 +00:00
parent 0f51c0174f
commit 1284e86476
3 changed files with 5 additions and 5 deletions

View File

@@ -401,7 +401,7 @@ struct scatter_chain {
*/
/* returns number of scattered objects */
int
long
scatter(sx,sy,blastforce,scflags, obj)
int sx,sy; /* location of objects to scatter */
int blastforce; /* force behind the scattering */
@@ -418,7 +418,7 @@ struct obj *obj; /* only scatter this obj */
struct monst *mtmp;
struct scatter_chain *stmp, *stmp2 = 0;
struct scatter_chain *schain = (struct scatter_chain *)0;
int total = 0;
long total = 0L;
while ((otmp = individual_object ? obj : level.objects[sx][sy]) != 0) {
if (otmp->quan > 1L) {