Skip to content

Commit

Permalink
fix off by one in out of memory test (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulpalamuttam authored and jjthomas committed Mar 6, 2017
1 parent 161b4fd commit e38b2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ fn outofmemory_error_test() {
let value = CString::new("50000").unwrap().into_raw() as *const c_char;
unsafe { weld_conf_set(conf, key, value) };

let x = vec![4; 50000 / 4 as usize];
let x = vec![4; 50004 / 4 as usize];
let ref input_data = WeldVec {
data: x.as_ptr() as *const i32,
len: x.len() as i64,
Expand Down

0 comments on commit e38b2dd

Please sign in to comment.