From 8e932480f61d6101bf8bea1abc07ed93826221fd Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 29 Sep 2023 14:58:48 +0200 Subject: refactor: the long goodbye long is 32 bits on windows, while it is 64 bits on other architectures. This makes the type suboptimal for a codebase meant to be cross-platform. Replace it with more appropriate integer types. --- src/xdiff/xdiff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xdiff') diff --git a/src/xdiff/xdiff.h b/src/xdiff/xdiff.h index 49985a0e9a..634c320508 100644 --- a/src/xdiff/xdiff.h +++ b/src/xdiff/xdiff.h @@ -102,8 +102,8 @@ typedef struct s_xdemitcb { typedef long (*find_func_t)(const char *line, long line_len, char *buffer, long buffer_size, void *priv); -typedef int (*xdl_emit_hunk_consume_func_t)(long start_a, long count_a, - long start_b, long count_b, +typedef int (*xdl_emit_hunk_consume_func_t)(int start_a, int count_a, + int start_b, int count_b, void *cb_data); typedef struct s_xdemitconf { -- cgit From acc646ad8fc3ef11fcc63b69f3d8484e4a91accd Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 29 Sep 2023 14:58:48 +0200 Subject: refactor: the long goodbye long is 32 bits on windows, while it is 64 bits on other architectures. This makes the type suboptimal for a codebase meant to be cross-platform. Replace it with more appropriate integer types. --- src/xdiff/xdiff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xdiff') diff --git a/src/xdiff/xdiff.h b/src/xdiff/xdiff.h index 634c320508..a6ce57dcb1 100644 --- a/src/xdiff/xdiff.h +++ b/src/xdiff/xdiff.h @@ -69,12 +69,12 @@ extern "C" { typedef struct s_mmfile { char *ptr; - long size; + int size; } mmfile_t; typedef struct s_mmbuffer { char *ptr; - long size; + int size; } mmbuffer_t; typedef struct s_xpparam { -- cgit