diff --git a/components/gfx/text/util.rs b/components/gfx/text/util.rs index 9aee736df61..23b8b029144 100644 --- a/components/gfx/text/util.rs +++ b/components/gfx/text/util.rs @@ -110,7 +110,7 @@ pub fn transform_text(text: &str, mode: CompressionMode, } pub fn float_to_fixed(before: int, f: f64) -> i32 { - (1i32 << before as uint) * (f as i32) + ((1i32 << before as uint) as f64 * f) as i32 } pub fn fixed_to_float(before: int, f: i32) -> f64 {