]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commit
Win32: fixed C4319 warning with MSVC 2022 x86. master
authorAleksei Bavshin <a.bavshin@nginx.com>
Tue, 23 Dec 2025 18:44:13 +0000 (10:44 -0800)
committerAleksei Bavshin <a.bavshin@f5.com>
Wed, 24 Dec 2025 18:41:43 +0000 (11:41 -0700)
commit6a67f71a4a78edb662c190af93ac6d3d680e107a
tree30d5741291e76400b50cd9add41bcb28be1e1d1d
parent0609736a92a72d269119c5bab1e518c4d9fb54da
Win32: fixed C4319 warning with MSVC 2022 x86.

The warning started to appear in Visual Studio 2022 version 17.14.21,
which corresponds to the C/C++ compiler version 19.44.35221.

The appropriate fix is to avoid mixing uint64_t and ngx_uint_t in an
expression with bitwise operations.  We can do that here because both
the original shm->size value and the result of the expression are 32-bit
platform words.
src/os/win32/ngx_shmem.c