summaryrefslogtreecommitdiff
path: root/contrib/diff-highlight/diff-highlight.perl
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2025-09-26 10:32:50 +0000
committerJunio C Hamano <gitster@pobox.com>2025-09-26 10:38:18 -0700
commite4efcd70604f2a294e020ec2e1bc38f01892cd19 (patch)
tree1dae914f2c90b332b2bd617902485e00204af09e /contrib/diff-highlight/diff-highlight.perl
parentf368df439b31b422169975cc3c95f7db6a46eada (diff)
http: offer to cast `size_t` to `curl_off_t` safely
This commit moves the `xcurl_off_t()` function, which validates that a given value fits within the `curl_off_t` data type and then casts it, to a more central place so that it can be used outside of `remote-curl.c`, too. At the same time, this function is renamed to conform better with the naming convention of the helper functions that safely cast from one data type to another which has been well established in `git-compat-util.h`. With this move, `gettext.h` must be `#include`d in `http.h` to allow the error message to remain translatable. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/diff-highlight/diff-highlight.perl')
0 files changed, 0 insertions, 0 deletions