Use specific negative assertion for gfx platform macos font

This commit is contained in:
CYBAI 2018-01-26 01:46:39 +08:00
parent 8fedc3a188
commit 4765b7b248

View file

@ -247,7 +247,7 @@ impl FontHandleMethods for FontHandle {
return None;
}
assert!(glyphs[0] != 0); // FIXME: error handling
assert_ne!(glyphs[0], 0); // FIXME: error handling
return Some(glyphs[0] as GlyphId);
}