[grits] Fix more warnings
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grits] Fix more warnings
- Date: Tue, 3 Jan 2012 01:20:44 +0000 (UTC)
commit f1e0d4f867702d5d5e1185c40efddc05b776c3c7
Author: Andy Spencer <andy753421 gmail com>
Date: Fri Nov 25 06:57:52 2011 +0000
Fix more warnings
src/plugins/elev.c | 2 +-
src/tile-test.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/elev.c b/src/plugins/elev.c
index 7e4509f..cf3f3fb 100644
--- a/src/plugins/elev.c
+++ b/src/plugins/elev.c
@@ -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;
}
diff --git a/src/tile-test.c b/src/tile-test.c
index 0aeafbd..9a4fd81 100644
--- a/src/tile-test.c
+++ b/src/tile-test.c
@@ -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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]