Skip to content

Commit 8693c83

Browse files
committed
fixup! xdiff: make fields of xrecord_t Rust friendly
To make `xdl_classify_record()` work, the `ha` attributes of `xrecord_t` and of `s_xdlclass` _must_ have the same range. Otherwise the function won't be able to recognize previously-classified records correctly when the `ha` recorded in the `xrecord_t` is so wide that it won't fit into the `s_xdlclass`' attribute and therefore they won't match when they need to match. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5e65926 commit 8693c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdiff/xprepare.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
typedef struct s_xdlclass {
3434
struct s_xdlclass *next;
35-
unsigned long ha;
35+
u64 ha;
3636
char const *line;
3737
long size;
3838
long idx;

0 commit comments

Comments
 (0)