aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-28 22:11:07 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-28 22:11:07 +0000
commite8dcdab180418a44b5349f48ee800285dfbf8920 (patch)
treed3639b39789d61f66a2e08c9d36004276e5a009e
parentbca7e4cb8292048336c4b62a839305eb4c27e6ba (diff)
Merged revisions 236713 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r236713 | qwell | 2009-12-28 16:09:40 -0600 (Mon, 28 Dec 2009) | 8 lines Allow "REMAINDER" to function properly in expressions. (closes issue #16427) Reported by: wdoekes Patches: ast16-reminder-remainder.patch uploaded by wdoekes (license 717) Tested by: wdoekes ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@236715 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/ast_expr2.c8
-rw-r--r--main/ast_expr2.y8
2 files changed, 8 insertions, 8 deletions
diff --git a/main/ast_expr2.c b/main/ast_expr2.c
index 44b0b7ece..c313a91df 100644
--- a/main/ast_expr2.c
+++ b/main/ast_expr2.c
@@ -237,10 +237,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#define FUNC_LOG (long double)log
#endif
-#ifdef HAVE_REMINDERL
-#define FUNC_REMINDER reminderl
-#elif defined(HAVE_REMINDER)
-#define FUNC_REMINDER (long double)reminder
+#ifdef HAVE_REMAINDERL
+#define FUNC_REMAINDER remainderl
+#elif defined(HAVE_REMAINDER)
+#define FUNC_REMAINDER (long double)remainder
#endif
#ifdef HAVE_FMODL
diff --git a/main/ast_expr2.y b/main/ast_expr2.y
index dc90aaa57..10e207e8c 100644
--- a/main/ast_expr2.y
+++ b/main/ast_expr2.y
@@ -106,10 +106,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#define FUNC_LOG (long double)log
#endif
-#ifdef HAVE_REMINDERL
-#define FUNC_REMINDER reminderl
-#elif defined(HAVE_REMINDER)
-#define FUNC_REMINDER (long double)reminder
+#ifdef HAVE_REMAINDERL
+#define FUNC_REMAINDER remainderl
+#elif defined(HAVE_REMAINDER)
+#define FUNC_REMAINDER (long double)remainder
#endif
#ifdef HAVE_FMODL