]> Pileus Git - grits/commitdiff
Fix more warnings
authorAndy Spencer <andy753421@gmail.com>
Fri, 25 Nov 2011 06:57:52 +0000 (06:57 +0000)
committerAndy Spencer <andy753421@gmail.com>
Fri, 25 Nov 2011 06:59:37 +0000 (06:59 +0000)
src/plugins/elev.c
src/tile-test.c

index 7e4509f57e3182884bb83f7d7a1e19a8160a530b..cf3f3fbe0b677b3d6b1d584a5a40bec83af22cc2 100644 (file)
@@ -114,7 +114,7 @@ static guint16 *_load_bil(gchar *path)
        g_debug("GritsPluginElev: load_bil %p", data);
        if (len != TILE_SIZE) {
                g_warning("GritsPluginElev: _load_bil - unexpected tile size %ld, != %ld",
-                               len, TILE_SIZE);
+                               (glong)len, (glong)TILE_SIZE);
                g_free(data);
                return NULL;
        }
index 0aeafbdf1cf68f50f442782431b595821a7252cc..9a4fd81629e4eae679c951889eff4aa74dd6a6ff 100644 (file)
@@ -32,7 +32,7 @@ struct CacheState {
 void chunk_callback(gsize cur, gsize total, gpointer _state)
 {
        struct CacheState *state = _state;
-       g_message("chunk_callback: %ld/%ld", cur, total);
+       g_message("chunk_callback: %ld/%ld", (glong)cur, (glong)total);
 
        if (state->progress == NULL) {
                state->progress = gtk_progress_bar_new();