auto merge of #6276 : brson/rust/issue-6122, r=graydon

This commit is contained in:
bors 2013-05-07 06:06:42 -07:00
commit 38a6a7a394

View File

@ -379,6 +379,7 @@ pub mod reader {
fn read_int(&mut self) -> int {
let v = doc_as_u64(self.next_doc(EsInt)) as i64;
if v > (int::max_value as i64) || v < (int::min_value as i64) {
debug!("FIXME #6122: Removing this makes this function miscompile");
fail!(fmt!("int %? out of range for this architecture", v));
}
v as int