]> Kevux Git Server - rit/commit
xdiff: use unambiguous types in xdl_bogo_sqrt()
authorEzekiel Newren <ezekielnewren@gmail.com>
Wed, 29 Apr 2026 22:08:11 +0000 (22:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Apr 2026 00:16:50 +0000 (09:16 +0900)
commitc37f8cda0525d7041d9a22e477117a2962f9f675
tree56998e4fe2bd5b6fd7cbb61aa94d5c618083f5f4
parentb7b8449e5ae7c6a0bb3e87c82d9dd6fd382baf62
xdiff: use unambiguous types in xdl_bogo_sqrt()

There is no real square root for a negative number and size_t may not
be large enough for certain applications, replace long with uint64_t.

Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xdiffi.c
xdiff/xprepare.c
xdiff/xutils.c
xdiff/xutils.h