Use u32 for TableColumnFragmentInfo::span.

This commit is contained in:
Ms2ger 2015-04-02 14:46:19 +02:00
parent 6d7dead4ef
commit 3dd3ad728e
2 changed files with 3 additions and 3 deletions

View file

@ -672,7 +672,7 @@ impl UnscannedTextFragmentInfo {
#[derive(Copy, Clone)]
pub struct TableColumnFragmentInfo {
/// the number of columns a <col> element should span
pub span: int,
pub span: u32,
}
impl TableColumnFragmentInfo {
@ -681,7 +681,7 @@ impl TableColumnFragmentInfo {
let span = {
let element = node.as_element();
element.get_attr(&ns!(""), &atom!("span")).and_then(|string| {
let n: Option<int> = FromStr::from_str(string).ok();
let n: Option<u32> = FromStr::from_str(string).ok();
n
}).unwrap_or(0)
};