Skip to content

Commit faee6fa

Browse files
committed
Suppress another case of MSVC warning 4146.
1 parent 04a87ae commit faee6fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/pgcrypto/imath.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* - remove includes covered by c.h
1818
* - rename DEBUG to IMATH_DEBUG
1919
* - replace stdint.h usage with c.h equivalents
20+
* - suppress MSVC warning 4146
2021
*
2122
* 2. Download a newer imath.c and imath.h. Transform them like in step 1.
2223
* 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)
23592360
static int
23602361
s_vcmp(mp_int a, mp_small v)
23612362
{
2363+
#if _MSC_VER
2364+
#pragma warning(push)
2365+
#pragma warning(disable: 4146)
2366+
#endif
23622367
mp_usmall uv = (v < 0) ? -(mp_usmall) v : (mp_usmall) v;
2368+
#if _MSC_VER
2369+
#pragma warning(pop)
2370+
#endif
23632371

23642372
return s_uvcmp(a, uv);
23652373
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy