mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-23 15:55:21 -05:00
Drop the cast_size_t_to_ulong() helper
Now that all of the call sites of this helper (which I used as a kind of "NEEDSWORK" marker) are eliminated, we can drop that helper altogether. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -699,15 +699,6 @@ static inline size_t st_left_shift(size_t a, unsigned shift)
|
||||
return a << shift;
|
||||
}
|
||||
|
||||
static inline unsigned long cast_size_t_to_ulong(size_t a)
|
||||
{
|
||||
if (a != (unsigned long)a)
|
||||
die("object too large to read on this platform: %"
|
||||
PRIuMAX" is cut off to %lu",
|
||||
(uintmax_t)a, (unsigned long)a);
|
||||
return (unsigned long)a;
|
||||
}
|
||||
|
||||
static inline uint32_t cast_size_t_to_uint32_t(size_t a)
|
||||
{
|
||||
if (a != (uint32_t)a)
|
||||
|
||||
Reference in New Issue
Block a user