Skip to content

Commit

Permalink
Remove cast::transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
deokjinkim committed Oct 3, 2013
1 parent 7716c2b commit 70578e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/gfx/text/shaping/harfbuzz.rs
Expand Up @@ -13,7 +13,6 @@ use servo_util::range::Range;
use text::util::{float_to_fixed, fixed_to_float, fixed_to_rounded_int};

use std::cast::transmute;
use std::cast;
use std::char;
use std::libc::{c_uint, c_int, c_void, c_char};
use std::ptr;
Expand Down Expand Up @@ -510,7 +509,7 @@ extern fn glyph_h_advance_func(_: *hb_font_t,
glyph: hb_codepoint_t,
_: *c_void)
-> hb_position_t {
let font: *mut Font = unsafe { cast::transmute(font_data as *Font) };
let font: *mut Font = font_data as *mut Font;
assert!(font.is_not_null());

unsafe {
Expand Down

5 comments on commit 70578e6

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from jdm
at deokjinkim@70578e6

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging deokjinkim/servo/glyph_advance_cache = 70578e6 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deokjinkim/servo/glyph_advance_cache = 70578e6 merged ok, testing candidate = 5d59c00

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 5d59c00

Please sign in to comment.