From 317f688730d9463cb5d2ab3e544db18c2899417b Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 27 Jun 2005 08:20:21 +0000 Subject: Fix the build on 4.X. Sbumitted by: mjl on #freebsd-gnome git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4122 df743ca5-7f9a-e211-a948-0013205c9059 --- math/gcalctool/files/patch-gcalctool-functions.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 math/gcalctool/files/patch-gcalctool-functions.c (limited to 'math') diff --git a/math/gcalctool/files/patch-gcalctool-functions.c b/math/gcalctool/files/patch-gcalctool-functions.c new file mode 100644 index 000000000..e51f656f5 --- /dev/null +++ b/math/gcalctool/files/patch-gcalctool-functions.c @@ -0,0 +1,23 @@ +--- gcalctool/functions.c.orig Mon Jun 27 20:14:54 2005 ++++ gcalctool/functions.c Mon Jun 27 20:16:22 2005 +@@ -570,9 +570,6 @@ + do_tfunc(int s[MP_SIZE], int t[MP_SIZE], enum trig_func tfunc) + { + // Assumes the SIN=0, COS=1, TAN=2 +- +- assert(tfunc < 3); +- + enum trig_func conv_table[3][4] = { + {sin_t, asin_t, sinh_t, asinh_t}, + {cos_t, acos_t, cosh_t, acosh_t}, +@@ -582,7 +579,9 @@ + int inverse = (v->inverse) ? 1 : 0; + int hyperbolic = (v->hyperbolic) ? 2 : 0; + int mode = (inverse | hyperbolic); +- ++ ++ assert(tfunc < 3); ++ + if (!v->current) return -EINVAL; + + calc_trigfunc(conv_table[tfunc][mode], s, t); -- cgit v1.2.3