auto merge of #6276 : brson/rust/issue-6122, r=graydon
This commit is contained in:
commit
38a6a7a394
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user