Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfaee6fa

Browse files
committed
Suppress another case of MSVC warning 4146.
1 parent04a87ae commitfaee6fa

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
staticint
23602361
s_vcmp(mp_inta,mp_smallv)
23612362
{
2363+
#if_MSC_VER
2364+
#pragma warning(push)
2365+
#pragma warning(disable: 4146)
2366+
#endif
23622367
mp_usmalluv= (v<0) ?-(mp_usmall)v : (mp_usmall)v;
2368+
#if_MSC_VER
2369+
#pragma warning(pop)
2370+
#endif
23632371

23642372
returns_uvcmp(a,uv);
23652373
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp