summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-04-17 13:28:48 +0100
committerRichard Hughes <richard@hughsie.com>2014-10-10 10:10:25 +0100
commit3f4095d811ed8e71aa5db85aa7494cffc77a2dc5 (patch)
treead2db01ac60092f888dfe0ac36fde1d3eaededd2
parent6fbdf7a62b4f6671e0b571e9f99f411d7c739d6d (diff)
downloadcolord-3f4095d811ed8e71aa5db85aa7494cffc77a2dc5.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
-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 b1b74df..41994ec 100644
--- a/lib/colord/cd-it8.c
+++ b/lib/colord/cd-it8.c
@@ -931,7 +931,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);
@@ -984,10 +984,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 */