diff options
author | Noah Misch | 2019-02-16 23:28:27 +0000 |
---|---|---|
committer | Noah Misch | 2019-02-16 23:28:27 +0000 |
commit | faee6fae6d09fb5d8c809946a113eb70c2968892 (patch) | |
tree | 1959e8e87a52756ba9e6068c1efb89f3991b3442 | |
parent | 04a87ae2626311e922cf964d1e7d42a5ef7d87bf (diff) |
Suppress another case of MSVC warning 4146.
-rw-r--r-- | contrib/pgcrypto/imath.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/pgcrypto/imath.c b/contrib/pgcrypto/imath.c index 431eb6c444..92422aa3ad 100644 --- a/contrib/pgcrypto/imath.c +++ b/contrib/pgcrypto/imath.c @@ -17,6 +17,7 @@ * - remove includes covered by c.h * - rename DEBUG to IMATH_DEBUG * - replace stdint.h usage with c.h equivalents + * - suppress MSVC warning 4146 * * 2. Download a newer imath.c and imath.h. Transform them like in step 1. * Apply to these files the diff you saved in step 1. Look for new lines @@ -2359,7 +2360,14 @@ s_ucmp(mp_int a, mp_int b) static int s_vcmp(mp_int a, mp_small v) { +#if _MSC_VER +#pragma warning(push) +#pragma warning(disable: 4146) +#endif mp_usmall uv = (v < 0) ? -(mp_usmall) v : (mp_usmall) v; +#if _MSC_VER +#pragma warning(pop) +#endif return s_uvcmp(a, uv); } |