From 99fd9f47effcd18489528e895c08b58ed24d6505 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 12 Oct 2013 12:17:16 +0000 Subject: soft-fp: fix floating-point to integer unsigned saturation. --- soft-fp/op-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'soft-fp/op-common.h') diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h index 5dfb73c185..dbc107773e 100644 --- a/soft-fp/op-common.h +++ b/soft-fp/op-common.h @@ -1284,7 +1284,7 @@ do { \ r -= 1 - X##_s; \ } else { \ r = 0; \ - if (X##_s) \ + if (!X##_s) \ r = ~r; \ } \ \ -- cgit 1.4.1