History

softfloat: handle -INT_MAX correctly

This is similar to commit 9ac61e73d0843ec4b83f4e3d47eded73234e406e.

Andreas Cadhalpun committed 10 years ago

Commit 0edd5691 parent d0d69021 file · +1 −1Browse files

Showing the changes to libavutil/softfloat.h (1 of 1 file). Show all

Unified · Split

libavutil/softfloat.h+1−1
@@ -175,7 +175,7 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){ · 174 unmodified lines
175175 */
176176 static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
177177 int exp_offset = 0;
178− if(v == INT_MIN){
178+ if(v <= INT_MIN + 1){
179179 exp_offset = 1;
180180 v>>=1;
181181 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t