diff options
author | Johannes Weißl <[email protected]> | 2013-06-14 15:23:59 +0200 |
---|---|---|
committer | Johannes Weißl <[email protected]> | 2013-06-14 15:25:12 +0200 |
commit | 5adbd7d22bccc57e17ed00cac09fe8a336bb39c7 (patch) | |
tree | bd7bd69c78661b96840b97e9b03febfb9e555325 /lib/stdlib/src/erl_scan.erl | |
parent | 29465408c90b2271b68e9559b5482fc6c4fcdde5 (diff) | |
download | otp-5adbd7d22bccc57e17ed00cac09fe8a336bb39c7.tar.gz otp-5adbd7d22bccc57e17ed00cac09fe8a336bb39c7.tar.bz2 otp-5adbd7d22bccc57e17ed00cac09fe8a336bb39c7.zip |
Fix binary matching on floating point middle-endian machines
This complements 933e701 (OTP-10209). Without this patch the test case
"bs_match_misc_SUITE:t_float/1" fails.
Simple error example:
1> <<_,_,_,_,_,_,_,_>> = <<1.25/float>>.
<<63,244,0,0,0,0,0,0>>
2> <<1.25/float>> = <<63,244,0,0,0,0,0,0>>.
** exception error: no match of right hand side value <<63,244,0,0,0,0,0,0>>
The additional test case is added because in a former version of this
patch the ERTS_FP_ERROR_THOROUGH check for NaN/infinity was mistakenly
applied on the still word-switched double.
Diffstat (limited to 'lib/stdlib/src/erl_scan.erl')
0 files changed, 0 insertions, 0 deletions