diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-13 08:58:03 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-13 15:40:57 -0300 |
commit | dd0e14603b9ed5f72db1791c1e9e3d67be1df266 (patch) | |
tree | 7b57006647a40a445037f705203a2a10453653e6 /testing/agg/0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch | |
parent | a33cf7235864a327ab6c72fd9d2bb89528177365 (diff) | |
download | aports-dd0e14603b9ed5f72db1791c1e9e3d67be1df266.tar.bz2 aports-dd0e14603b9ed5f72db1791c1e9e3d67be1df266.tar.xz |
testing/agg: fix build, import patches from Arch Linux
Diffstat (limited to 'testing/agg/0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch')
-rw-r--r-- | testing/agg/0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/agg/0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch b/testing/agg/0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch new file mode 100644 index 0000000000..6214bd62e3 --- /dev/null +++ b/testing/agg/0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch @@ -0,0 +1,24 @@ +From ca818d4dcd428c5560fc3c341fbaf427a7485e32 Mon Sep 17 00:00:00 2001 +From: Tom Hughes <tom@compton.nu> +Date: Sat, 22 Jun 2013 12:34:37 +0100 +Subject: [PATCH 15/15] Ensure first value in the gamma table is always zero + +--- + include/agg_gamma_functions.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/agg_gamma_functions.h b/include/agg_gamma_functions.h +index beb0c04..b8eda52 100644 +--- a/include/agg_gamma_functions.h ++++ b/include/agg_gamma_functions.h +@@ -49,6 +49,7 @@ namespace agg + + double operator() (double x) const + { ++ if (x == 0.0) return 0.0; + return pow(x, m_gamma); + } + +-- +1.8.1.4 + |