Fix some compiler warnings. They might vome back on 32-bit machines.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 21 Oct 2010 11:27:44 +0000 (07:27 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 21 Oct 2010 11:27:44 +0000 (07:27 -0400)
edit.c
object.c

diff --git a/edit.c b/edit.c
index 85609e3..d6be667 100644 (file)
--- 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);
index 71ad82a..ab1e6f7 100644 (file)
--- 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;