> Date: Tue, 8 Oct 2024 01:46:56 +0200 > From: Patrice Dumas <[email protected]> > > Keeping long could hide some bugs of offsets becoming negative, but also > be more robust in face of those bugs if it does not matter much that the > offsets become negative. > > Any advice? > > I attach the patch that would set SEARCH_BINDING start and end offsets > to size_t.
C experts always tell me that using unsigned is asking for trouble, so I try to use it only where I have no choice. It is better to convert everything to signed (like by using ptrdiff_t) than go in the unsigned direction, IME.
