Skip to content

Commit

Permalink
Merge branch 'tr/xsize-bits' into maint
Browse files Browse the repository at this point in the history
* tr/xsize-bits:
  xsize_t: check whether we lose bits
  • Loading branch information
Junio C Hamano committed Aug 19, 2010
2 parents 6baa9bd + 46be82d commit 745654f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ extern int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1);

static inline size_t xsize_t(off_t len)
{
if (len > (size_t) len)
die("Cannot handle files this big");
return (size_t)len;
}

Expand Down

0 comments on commit 745654f

Please sign in to comment.