std: Workaround bustage on incoming. #6122

This commit is contained in:
Brian Anderson 2013-04-29 18:21:43 -07:00
parent 6e6a4be19d
commit 3cafe905a4

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