cast int64 to smaller types (trunk only)

The devteam feedback was to place casts in the code
in question.

This puts explicit casts on some code that was being
compiled into 'int64' then stuffed into smaller types with
VC2005.
This commit is contained in:
nethack.allison
2006-07-11 12:38:16 +00:00
parent 7394b0a353
commit 96c6163019
11 changed files with 19 additions and 19 deletions

View File

@@ -227,7 +227,7 @@ nh_timeout()
for(upp = u.uprops; upp < u.uprops+SIZE(u.uprops); upp++)
if((upp->intrinsic & TIMEOUT) && !(--upp->intrinsic & TIMEOUT)) {
kptr = find_delayed_killer(upp - u.uprops);
kptr = find_delayed_killer((int)(upp - u.uprops));
switch(upp - u.uprops){
case STONED:
if (kptr && kptr->name[0]) {