]> git.itanic.dy.fi Git - maemo-mapper/commitdiff
Changed GLONG_TO_BE references to GINT32_TO_BE references.
authorgnuite <gnuite@gmail.com>
Fri, 16 Nov 2007 01:38:42 +0000 (01:38 +0000)
committergnuite <gnuite@gmail.com>
Fri, 16 Nov 2007 01:38:42 +0000 (01:38 +0000)
git-svn-id: svn+ssh://garage/var/lib/gforge/svnroot/maemo-mapper/trunk@126 6c538b50-5814-0410-93ad-8bdf4c0149d1

src/maps.c

index c8eb5ca0cbf550527f529e65eb06f192c20f67a1..80217620bfa4fc83443743c5005918da35ae4b74 100644 (file)
@@ -133,10 +133,10 @@ mapdb_exists(RepoData *repo, gint zoom, gint tilex, gint tiley)
 #else
     {
         datum d;
-        gint key[] = {
-            GLONG_TO_BE(zoom),
-            GLONG_TO_BE(tilex),
-            GLONG_TO_BE(tiley)
+        gint32 key[] = {
+            GINT32_TO_BE(zoom),
+            GINT32_TO_BE(tilex),
+            GINT32_TO_BE(tiley)
         };
         d.dptr = (gchar*)&key;
         d.dsize = sizeof(key);
@@ -230,10 +230,10 @@ mapdb_get(RepoData *repo, gint zoom, gint tilex, gint tiley)
 #else
     {
         datum d;
-        gint key[] = {
-            GLONG_TO_BE(zoom),
-            GLONG_TO_BE(tilex),
-            GLONG_TO_BE(tiley)
+        gint32 key[] = {
+            GINT32_TO_BE(zoom),
+            GINT32_TO_BE(tilex),
+            GINT32_TO_BE(tiley)
         };
         d.dptr = (gchar*)&key;
         d.dsize = sizeof(key);
@@ -413,10 +413,10 @@ mapdb_update(gboolean exists, RepoData *repo,
 #else
     {
         datum dkey, dcon;
-        gint key[] = {
-            GLONG_TO_BE(zoom),
-            GLONG_TO_BE(tilex),
-            GLONG_TO_BE(tiley)
+        gint32 key[] = {
+            GINT32_TO_BE(zoom),
+            GINT32_TO_BE(tilex),
+            GINT32_TO_BE(tiley)
         };
         dkey.dptr = (gchar*)&key;
         dkey.dsize = sizeof(key);
@@ -480,10 +480,10 @@ mapdb_delete(RepoData *repo, gint zoom, gint tilex, gint tiley)
 #else
     {
         datum d;
-        gint key[] = {
-            GLONG_TO_BE(zoom),
-            GLONG_TO_BE(tilex),
-            GLONG_TO_BE(tiley)
+        gint32 key[] = {
+            GINT32_TO_BE(zoom),
+            GINT32_TO_BE(tilex),
+            GINT32_TO_BE(tiley)
         };
         d.dptr = (gchar*)&key;
         d.dsize = sizeof(key);