ares-openbsd/libco
invertego 7faebad713
build: fix level 1 msvc warnings (#1295)
Level 1 warnings are considered "severe" and, unsurprisingly, turning
them on revealed some true bugs.

- file-buffer.hpp: What should have been a zero extend followed by a
complement was instead a complement followed by a zero extend,
inadvertently truncating the file seek offset to 32 bits.
- file-map.cpp: What should have been a nullptr check after
CreateFileMapping() was instead a check for INVALID_HANDLE_VALUE. The
warning pointing me toward this was not technically about the misuse but
rather the redefinition of INVALID_HANDLE_VALUE in nall. I've removed
this and any reference to INVALID_HANDLE_VALUE except for error checks
immediately after calls to the few APIs that return it.
2023-11-19 14:59:02 +00:00
..
GNUmakefile
aarch64.c
amd64.c
arm.c
fiber.c
libco.c nall, libco: add support for risc-v arch (#1249) 2023-10-02 08:45:43 +01:00
libco.h
ppc.c
ppc64v2.c
riscv.c nall, libco: add support for risc-v arch (#1249) 2023-10-02 08:45:43 +01:00
settings.h build: fix level 1 msvc warnings (#1295) 2023-11-19 14:59:02 +00:00
sjlj.c
ucontext.c
x86.c