Fix compiling large files

* line-map.c (new_linemap): Make alloc_size a size_t.

From-SVN: r234239
This commit is contained in:
Richard Henderson 2016-03-15 16:08:45 -07:00 committed by Richard Henderson
parent 6585b2e2dd
commit 64567cfd1d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-03-15 Richard Henderson <rth@redhat.com>
* line-map.c (new_linemap): Make alloc_size a size_t.
2016-03-14 Jason Merrill <jason@redhat.com>
* expr.c (cpp_classify_number): Hex floats are new in C++1z.

View File

@ -376,7 +376,7 @@ new_linemap (struct line_maps *set,
if (LINEMAPS_USED (set, macro_map_p) == LINEMAPS_ALLOCATED (set, macro_map_p))
{
/* We ran out of allocated line maps. Let's allocate more. */
unsigned alloc_size;
size_t alloc_size;
/* Cast away extern "C" from the type of xrealloc. */
line_map_realloc reallocator = (set->reallocator