From 6f361d45afc83e53867accb36fd36ad2ce76626e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 21 Oct 2010 07:27:44 -0400 Subject: [PATCH] Fix some compiler warnings. They might vome back on 32-bit machines. --- edit.c | 4 ++-- object.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/edit.c b/edit.c index 85609e3..d6be667 100644 --- a/edit.c +++ b/edit.c @@ -595,7 +595,7 @@ long edit_cursor; (void) sprintf (temp_buf, "%c:%s; ", piece_attr[s].sname, func_name[FUNCI(cityp->func[s])]); - else (void) sprintf (temp_buf, "%c: %ld;", + else (void) sprintf (temp_buf, "%c: %d;", piece_attr[s].sname, loc_disp(cityp->func[s])); @@ -603,7 +603,7 @@ long edit_cursor; } (void) sprintf (junk_buf2, - "City at location %ld will complete %s on round %ld", + "City at location %d will complete %s on round %ld", loc_disp(cityp->loc), piece_attr[(int)cityp->prod].article, date + piece_attr[(int)cityp->prod].build_time - cityp->work); diff --git a/object.c b/object.c index 71ad82a..ab1e6f7 100644 --- a/object.c +++ b/object.c @@ -502,7 +502,7 @@ piece_info_t *obj; char func[STRSIZE]; char other[STRSIZE]; - if (obj->func >= 0) (void) sprintf (func, "%ld", loc_disp(obj->func)); + if (obj->func >= 0) (void) sprintf (func, "%d", loc_disp(obj->func)); else (void) sprintf (func, func_name[FUNCI(obj->func)]); other[0] = 0; -- 2.43.0