Skip to content

Commit

Permalink
Add comment for PR#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jethro Beekman committed Jul 20, 2016
1 parent 5d96bd6 commit 887f2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ fn unary_op(input: (&[u8],EvalResult)) -> Option<EvalResult> {
assert_eq!(input.0.len(),1);
match (input.0[0],input.1) {
(b'+',i) => Some(i),
(b'-',Int(i)) => Some(Int(Wrapping(i.0.wrapping_neg()))),
(b'-',Int(i)) => Some(Int(Wrapping(i.0.wrapping_neg()))), // impl Neg for Wrapping not until rust 1.10...
(b'-',Float(i)) => Some(Float(-i)),
(b'-',_) => unreachable!("non-numeric unary op"),
(b'~',Int(i)) => Some(Int(!i)),
Expand Down

0 comments on commit 887f2f3

Please sign in to comment.