diff options
author | Bryce Harrington <b.harrington@samsung.com> | 2014-07-21 15:05:14 -0700 |
---|---|---|
committer | Bryce Harrington <b.harrington@samsung.com> | 2014-07-24 18:41:37 -0700 |
commit | 82b4781f18d4dc3d368b04a436f854a8f0cff1e1 (patch) | |
tree | 2ab1cad5e5e0d351b9890496fb448bd70782ede2 /src/cairo-wideint.c | |
parent | 9e6ceb23b45b7da19911b38eddb7f42f921929b1 (diff) | |
download | cairo-82b4781f18d4dc3d368b04a436f854a8f0cff1e1.tar.gz |
cairo-wideint: Fix typo in two cairo_uint128 functions
_cairo_int128_negate and _cairo_int128_not are #defines of
_cairo_uint128_negate and _cairo_uint128_not respectively. The function
implementations should use the actual function name not the aliases. On
systems without a uint128 type, these could lead to build issues.
Credit for finding this go to Dr. Peter Barnes, LLNL.
Diffstat (limited to 'src/cairo-wideint.c')
-rw-r--r-- | src/cairo-wideint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-wideint.c b/src/cairo-wideint.c index bba266b24..2e056fa36 100644 --- a/src/cairo-wideint.c +++ b/src/cairo-wideint.c @@ -654,16 +654,16 @@ _cairo_uint128_divrem (cairo_uint128_t num, cairo_uint128_t den) return qr; } -cairo_int128_t -_cairo_int128_negate (cairo_int128_t a) +cairo_uint128_t +_cairo_uint128_negate (cairo_uint128_t a) { a.lo = _cairo_uint64_not (a.lo); a.hi = _cairo_uint64_not (a.hi); return _cairo_uint128_add (a, _cairo_uint32_to_uint128 (1)); } -cairo_int128_t -_cairo_int128_not (cairo_int128_t a) +cairo_uint128_t +_cairo_uint128_not (cairo_uint128_t a) { a.lo = _cairo_uint64_not (a.lo); a.hi = _cairo_uint64_not (a.hi); |