Fix build: using integer absolute value function 'abs' when argument is of floating...
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Mar 2014 22:24:52 +0000 (22:24 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Mar 2014 22:24:52 +0000 (22:24 +0000)
commited10464291c4ed8acd663abdbfb3f5b99aab2819
treee16d9bba9d26e81e1d800258ce090ecf3e96d6fa
parent1d5a87d9fd601ec23ed480cbc40ea6a6041e9c46
Fix build: using integer absolute value function 'abs' when argument is of floating point type
<http://webkit.org/b/130286>

Reviewed by Filip Pizlo.

Fixes the following build failure using trunk clang:

    JavaScriptCore/assembler/MacroAssembler.h:992:17: error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value]
            value = abs(value);
                    ^
    JavaScriptCore/assembler/MacroAssembler.h:992:17: note: use function 'fabs' instead
            value = abs(value);
                    ^~~
                    fabs

* assembler/MacroAssembler.h:
(JSC::MacroAssembler::shouldBlindDouble): Switch from abs() to
fabs().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/assembler/MacroAssembler.h