Skip to content

Commit

Permalink
document the different behavior between 64 and 32 bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkjall committed Jul 12, 2023
1 parent 5568e79 commit c9205e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reader/tests.rs
Expand Up @@ -1662,5 +1662,8 @@ fn test_ber_read_overflow() {

let err = r.unwrap_err();

#[cfg(target_pointer_width = "32")]
assert_eq!(err.kind(), ASN1ErrorKind::Eof);
#[cfg(target_pointer_width = "64")]
assert_eq!(err.kind(), ASN1ErrorKind::IntegerOverflow);
}

0 comments on commit c9205e8

Please sign in to comment.