summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-04-17 13:28:48 +0100
committerRichard Hughes <richard@hughsie.com>2014-04-17 13:28:51 +0100
commit919eda53dad3d635aa4b815c923bcd33f3258d3f (patch)
treea89d27e1e234998a87deb6a2a53447ddaef06918 /lib
parent70fbc28a76634fe1fb0328b0749077dc15f8af3a (diff)
downloadcolord-919eda53dad3d635aa4b815c923bcd33f3258d3f.tar.gz
Fix building the CMF spectra on OpenBSD/sparc64
Do not cast gsize* to guint32* as this will not work when the size is different. Perhaps resolves: https://bugs.freedesktop.org/show_bug.cgi?id=77535
Diffstat (limited to 'lib')
-rw-r--r--lib/colord/cd-it8.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/colord/cd-it8.c b/lib/colord/cd-it8.c
index 16375e5..8da4a41 100644
--- a/lib/colord/cd-it8.c
+++ b/lib/colord/cd-it8.c
@@ -1424,7 +1424,7 @@ cd_it8_save_to_data (CdIt8 *it8,
gchar *data_tmp = NULL;
gchar *date_str = NULL;
GDateTime *datetime = NULL;
- gsize size_tmp = 0;
+ cmsUInt32Number size_tmp = 0;
guint i;
g_return_val_if_fail (CD_IS_IT8 (it8), FALSE);
@@ -1494,10 +1494,10 @@ cd_it8_save_to_data (CdIt8 *it8,
}
/* write the file */
- ret = cmsIT8SaveToMem (it8_lcms, NULL, (cmsUInt32Number *) &size_tmp);
+ ret = cmsIT8SaveToMem (it8_lcms, NULL, &size_tmp);
g_assert (ret);
data_tmp = g_malloc (size_tmp);
- ret = cmsIT8SaveToMem (it8_lcms, data_tmp, (cmsUInt32Number *) &size_tmp);
+ ret = cmsIT8SaveToMem (it8_lcms, data_tmp, &size_tmp);
g_assert (ret);
/* save for caller */