X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=diff-delta.c;h=74486b1b81419d0078d8f1e43c96db437d6d4f65;hb=91df4330d35f1f1670dd04af0a14f1ca84a72b2b;hp=25a798d050c6319f3d524c9c605ab70ea35ae7a1;hpb=7d55561986ffe94ca7ca22dc0a6846f698893226;p=git.git diff --git a/diff-delta.c b/diff-delta.c index 25a798d0..74486b1b 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -22,6 +22,7 @@ #include #include "delta.h" +#include "git-compat-util.h" /* maximum hash entry list for the same hash bucket */ #define HASH_LIMIT 64 @@ -131,7 +132,7 @@ struct delta_index { const void *src_buf; unsigned long src_size; unsigned int hash_mask; - struct index_entry *hash[0]; + struct index_entry *hash[FLEX_ARRAY]; }; struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)