Bug 646321. qcms: Avoid implicit conversion to double. r=bjacob
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 07 Apr 2011 16:59:12 -0700
changeset 67602 bd338849a167fd14bcf47796fcc77a81ceb357dc
parent 67601 128c34e6c3b88b7e662ae437588c7fab157fb970
child 67603 e024ed77fea15ad08e7b1bd9798a1a7b099737b9
push idunknown
push userunknown
push dateunknown
reviewersbjacob
bugs646321
milestone2.2a1pre
Bug 646321. qcms: Avoid implicit conversion to double. r=bjacob The double literal will cause us to unnecessarily convert to double.
gfx/qcms/qcmsint.h
--- a/gfx/qcms/qcmsint.h
+++ b/gfx/qcms/qcmsint.h
@@ -138,17 +138,17 @@ struct _qcms_profile {
 };
 
 #ifdef _MSC_VER
 #define inline _inline
 #endif
 
 static inline float s15Fixed16Number_to_float(s15Fixed16Number a)
 {
-	return ((int32_t)a)/65536.;
+	return ((int32_t)a)/65536.f;
 }
 
 static inline s15Fixed16Number double_to_s15Fixed16Number(double v)
 {
 	return (int32_t)(v*65536);
 }
 
 void precache_release(struct precache_output *p);