From 27d509605ba27030f87c6bb6537df341b6203f6b Mon Sep 17 00:00:00 2001 From: Ian Macphail Date: Mon, 20 Aug 2018 15:37:56 +0100 Subject: [PATCH 1/2] [[ Bug 21507 ]] Fix incorrect parameter order calling MCMathEvalAtan2Number from atan2 --- libscript/src/math.lcb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libscript/src/math.lcb b/libscript/src/math.lcb index deb3c787a7a..0774cffc2bd 100644 --- a/libscript/src/math.lcb +++ b/libscript/src/math.lcb @@ -322,7 +322,7 @@ end syntax public handler atan2(in pY as Number, in pX as Number) returns Number variable tVar as Number unsafe - MCMathEvalAtan2Number(pX, pY, tVar) + MCMathEvalAtan2Number(pY, pX, tVar) end unsafe return tVar end handler From a426d7afbf26c6888209453321c3ce4600a73627 Mon Sep 17 00:00:00 2001 From: Ian Macphail Date: Mon, 20 Aug 2018 15:53:17 +0100 Subject: [PATCH 2/2] [[ Bug 21507 ]] Add release note --- docs/lcb/notes/21507.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/lcb/notes/21507.md diff --git a/docs/lcb/notes/21507.md b/docs/lcb/notes/21507.md new file mode 100644 index 00000000000..5e6dc61164d --- /dev/null +++ b/docs/lcb/notes/21507.md @@ -0,0 +1 @@ +# [21507] Fix incorrect parameter order in com.livecode.math atan2 function