aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-01-28 12:16:32 +0100
committerBjörn Gustavsson <[email protected]>2013-01-31 11:11:36 +0100
commit819894b14db18c98ea0460cbbb28f3ad2a1d1b1b (patch)
tree7d9c1e7e2f60c8ede62dbfa040ae4346887afa77 /lib/diameter
parent9cfd4261240fffc51ca5aa7d1df5a29a30f42a38 (diff)
downloadotp-819894b14db18c98ea0460cbbb28f3ad2a1d1b1b.tar.gz
otp-819894b14db18c98ea0460cbbb28f3ad2a1d1b1b.tar.bz2
otp-819894b14db18c98ea0460cbbb28f3ad2a1d1b1b.zip
beam_type: Convert integer to float at compile time
In code such as: X / 2 the following code would be output from beam_type for the division: {fconv,{x,0},{fr,0}}. {fconv,{integer,2},{fr,1}}. fclearerror. {bif,fdiv,{f,0},[{fr,0},{fr,1}],{fr,0}}. That is, the integer 2 would be converted to the float 2.0 at run-time by "{fconv,{integer,2},{fr,1}}". Make sure that we do the conversion at compile time. Noticed-by: Richard O'Keefe
Diffstat (limited to 'lib/diameter')
0 files changed, 0 insertions, 0 deletions