summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-10 12:44:57 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-10 14:03:33 +0200
commit094560c29fed9b0b58505717c4e6694ad9ff8a69 (patch)
tree40c1a253fdc35d171f474f9e4262a4e4b611b417 /sal/rtl
parent44feea1957f6f3ff28917625223e610fe2807c49 (diff)
mingw64: casting to pointer from narrower integer fixes in sal
Change-Id: I63321e33f92223be47c7ee25dbf03fe3032991d6
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/alloc_arena.cxx2
-rw-r--r--sal/rtl/alloc_global.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx
index d35ba1fa13d1..9017a5ac2305 100644
--- a/sal/rtl/alloc_arena.cxx
+++ b/sal/rtl/alloc_arena.cxx
@@ -721,7 +721,7 @@ rtl_arena_activate (
for (i = 1; i <= n; i++)
{
size = i * arena->m_quantum;
- (void) snprintf (namebuf, sizeof(namebuf), "%s_%lu", arena->m_name, size);
+ (void) snprintf (namebuf, sizeof(namebuf), "%s_%" SAL_PRIuUINTPTR, arena->m_name, size);
arena->m_qcache_ptr[i - 1] = rtl_cache_create(namebuf, size, 0, NULL, NULL, NULL, NULL, arena, RTL_CACHE_FLAG_QUANTUMCACHE);
}
}
diff --git a/sal/rtl/alloc_global.cxx b/sal/rtl/alloc_global.cxx
index ab571c663631..8194b1346908 100644
--- a/sal/rtl/alloc_global.cxx
+++ b/sal/rtl/alloc_global.cxx
@@ -210,7 +210,7 @@ void rtl_memory_init()
for (i = 0; i < n; i++)
{
char name[RTL_CACHE_NAME_LENGTH + 1];
- (void) snprintf (name, sizeof(name), "rtl_alloc_%lu", g_alloc_sizes[i]);
+ (void) snprintf (name, sizeof(name), "rtl_alloc_%" SAL_PRIuUINTPTR, g_alloc_sizes[i]);
g_alloc_caches[i] = rtl_cache_create (name, g_alloc_sizes[i], 0, NULL, NULL, NULL, NULL, NULL, 0);
}