neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit af5ac7c7eaf230915d0ad5663b988e2b251531f4
parent 5de2ec76a3b01030e81b37244281c05469cff895
Author: bfredl <bjorn.linse@gmail.com>
Date:   Fri, 25 Jul 2025 19:49:46 +0200

fix(unittests): use -1ULL to mean UNSIGNED MATH.MAX

Diffstat:
Mtest/unit/marktree_spec.lua | 2+-
Mtest/unit/os/fs_spec.lua | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/unit/marktree_spec.lua b/test/unit/marktree_spec.lua @@ -590,7 +590,7 @@ describe('marktree', function() lib.marktree_check(tree) local iter = ffi.new('MarkTreeIter[1]') local filter = ffi.new('uint32_t[4]') - filter[0] = -1 + filter[0] = -1ULL ok(lib.marktree_itr_get_filter(tree, 0, 0, 101, 0, filter, iter)) local seen = {} repeat diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua @@ -278,7 +278,7 @@ describe('fs.c', function() itp('does not change owner and group if respective IDs are equal to -1', function() local uid = uv.fs_stat(filename).uid local gid = uv.fs_stat(filename).gid - eq(0, os_fchown(filename, -1, -1)) + eq(0, os_fchown(filename, -1ULL, -1ULL)) eq(uid, uv.fs_stat(filename).uid) return eq(gid, uv.fs_stat(filename).gid) end) @@ -304,7 +304,7 @@ describe('fs.c', function() -- User can be a member of only one group. -- In that case we can not perform this test. if new_gid then - eq(0, (os_fchown(filename, -1, new_gid))) + eq(0, (os_fchown(filename, -1ULL, new_gid))) eq(new_gid, uv.fs_stat(filename).gid) end end