From: Eric S. Raymond Date: Sat, 11 Mar 2023 14:41:07 +0000 (-0500) Subject: Fix a formal-type glitch. X-Git-Tag: 1.15~67 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b7bf85904d00488f6902036d03e9db664b68de89;p=open-adventure.git Fix a formal-type glitch. --- diff --git a/advent.h b/advent.h index bf27d9b..8cecf31 100644 --- a/advent.h +++ b/advent.h @@ -233,7 +233,7 @@ extern bool silent_yes_or_no(void); extern bool yes_or_no(const char*, const char*, const char*); extern void juggle(obj_t); extern void move(obj_t, loc_t); -extern loc_t put(obj_t, int, int); +extern loc_t put(obj_t, loc_t, int); extern void carry(obj_t, loc_t); extern void drop(obj_t, loc_t); extern int atdwrf(loc_t); diff --git a/misc.c b/misc.c index 0bcfb26..691d771 100644 --- a/misc.c +++ b/misc.c @@ -602,7 +602,7 @@ loc_t put(obj_t object, loc_t where, int pval) * negated game.prop values for the repository objects. */ { move(object, where); - return (-1) - pval;; + return (-1) - pval;; // Needs to stay sinchronized with STASHED } void carry(obj_t object, loc_t where)