X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diffcore-delta.c;h=d9729e5ec27d2ff2bacf4ed930195f9293f8ca5a;hb=38762c47d6442dc0ce0f45533f9151877c485337;hp=a038b166c5aa095ffdf31c2fb0e3263ed13cf8b1;hpb=3b0d9992ee9849cf12b16662f2b3c272e6792213;p=git.git diff --git a/diffcore-delta.c b/diffcore-delta.c index a038b166c..d9729e5ec 100644 --- a/diffcore-delta.c +++ b/diffcore-delta.c @@ -129,7 +129,7 @@ static struct spanhash_top *hash_chars(struct diff_filespec *one) struct spanhash_top *hash; unsigned char *buf = one->data; unsigned int sz = one->size; - int is_text = !one->is_binary; + int is_text = !diff_filespec_is_binary(one); i = INITIAL_HASH_SIZE; hash = xmalloc(sizeof(*hash) + sizeof(struct spanhash) * (1<