pthread: timespec.tv_nsec must be less then 1000000000 ns
Some checks failed
Build (Android) / ${{ matrix.platform.name }} (map[android_abi:arm64-v8a android_platform:23 arch:aarch64 cmake:1 name:CMake]) (push) Has been cancelled
Build (Android) / ${{ matrix.platform.name }} (map[name:Android.mk]) (push) Has been cancelled
Build (C/P Actions) / FreeBSD (push) Has been cancelled
Build (Emscripten) / emscripten (push) Has been cancelled
Build (iOS/tvOS) / ${{ matrix.platform.name }} (map[name:iOS sdk:iphoneos target:Static Library-iOS]) (push) Has been cancelled
Build (iOS/tvOS) / ${{ matrix.platform.name }} (map[name:tvOS sdk:appletvos target:Static Library-tvOS]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[artifact:SDL-ubuntu20.04-icc cmake:-DSDL_CLANG_TIDY=OFF intel:true name:Intel Compiler (Ubuntu 20.04) os:ubuntu-20.04 shell:bash source_cmd:source /opt/intel/oneapi/setvars.sh; export CC=icc; export CXX=icpc; export CFL… (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[artifact:SDL-ubuntu20.04-oneapi intel:true name:Intel oneAPI (Ubuntu 20.04) os:ubuntu-20.04 shell:bash source_cmd:source /opt/intel/oneapi/setvars.sh; export CC=icx; export CXX=icx;]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[autotools:true name:MacOS (autotools) os:macos-latest shell:sh]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[autotools:true name:Ubuntu 20.04 (autotools) os:ubuntu-20.04 shell:sh]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[autotools:true name:Ubuntu 22.04 (autotools) os:ubuntu-22.04 shell:sh]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[cmake:-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" name:MacOS (CMake) os:macos-latest shell:sh]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[msys-env:mingw-w64-clang-i686 msystem:clang32 name:Windows (clang32) os:windows-latest shell:msys2 {0}]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[msys-env:mingw-w64-clang-x86_64 msystem:clang64 name:Windows (clang64) os:windows-latest shell:msys2 {0}]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[msys-env:mingw-w64-i686 msystem:mingw32 name:Windows (mingw32) os:windows-latest shell:msys2 {0}]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[msys-env:mingw-w64-ucrt-x86_64 msystem:ucrt64 name:Windows (ucrt64) os:windows-latest shell:msys2 {0}]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[msys-env:mingw-w64-x86_64 msystem:mingw64 name:Windows (mingw64) os:windows-latest shell:msys2 {0}]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[name:Ubuntu 20.04 (CMake) os:ubuntu-20.04 shell:sh]) (push) Has been cancelled
Build / ${{ matrix.platform.name }} (map[name:Ubuntu 22.04 (CMake) os:ubuntu-22.04 shell:sh]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-A ARM name:Windows (ARM)]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-A ARM64 name:Windows (ARM64)]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-A Win32 -DSDL_FORCE_STATIC_VCRT=ON name:Windows static VCRT (x86)]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-A Win32 name:Windows (x86) project:VisualC/SDL.sln projectflags:/p:Platform=Win32]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-A x64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0" -DSDL_TESTS=OFF name:UWP (x64) nowerror:true project:VisualC-WinRT/SDL-UWP.sln projectflags:/p:Platform=x64 /p:WindowsTargetPlatformVersion=10.… (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-A x64 -DSDL_FORCE_STATIC_VCRT=ON name:Windows static VCRT (x64)]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-A x64 name:Windows (x64) project:VisualC/SDL.sln projectflags:/p:Platform=x64]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-T ClangCL -A Win32 name:Windows (clang-cl x86)]) (push) Has been cancelled
Build (MSVC) / ${{ matrix.platform.name }} (map[flags:-T ClangCL -A x64 name:Windows (clang-cl x64)]) (push) Has been cancelled
Build (Nintendo 3DS) / n3ds (push) Has been cancelled
Build (Sony Playstation 2) / ps2 (push) Has been cancelled
Build (Sony Playstation Portable) / psp (push) Has been cancelled
Build (RISC OS) / ${{ matrix.platform.name }} (map[name:CMake]) (push) Has been cancelled
Build (RISC OS) / ${{ matrix.platform.name }} (map[name:autotools test_args:-DTEST_SHARED=FALSE]) (push) Has been cancelled
Build (Sony Playstation Vita) / ${{ matrix.platform.name }} (map[name:GLES (PVR_PSP2 + gl4es4vita) os:windows-latest pvr:true]) (push) Has been cancelled
Build (Sony Playstation Vita) / ${{ matrix.platform.name }} (map[name:GLES (pib) os:windows-latest pib:true]) (push) Has been cancelled
Build (OpenWatcom) / ${{ matrix.platform.name }} (map[makefile:Makefile.os2 name:OS/2]) (push) Has been cancelled
Build (OpenWatcom) / ${{ matrix.platform.name }} (map[makefile:Makefile.w32 name:Windows]) (push) Has been cancelled

(cherry picked from commit 1ef041a2ca)
This commit is contained in:
Anonymous Maarten 2024-07-14 17:20:26 +02:00
parent 4927836b2d
commit fe9020dcb8
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms)
abstime.tv_sec = delta.tv_sec + (ms / 1000);
abstime.tv_nsec = (long)(delta.tv_usec + (ms % 1000) * 1000) * 1000;
#endif
if (abstime.tv_nsec > 1000000000) {
if (abstime.tv_nsec >= 1000000000) {
abstime.tv_sec += 1;
abstime.tv_nsec -= 1000000000;
}

View file

@ -141,7 +141,7 @@ int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
#endif
/* Wrap the second if needed */
if (ts_timeout.tv_nsec > 1000000000) {
if (ts_timeout.tv_nsec >= 1000000000) {
ts_timeout.tv_sec += 1;
ts_timeout.tv_nsec -= 1000000000;
}