nedmalloc: fix misleading indentation
Some code in nedmalloc is indented in a funny way that could be misinterpreted as if a line after a for loop was included in the loop body, when it is not. GCC 6 complains about this in DEVELOPER=YepSure mode. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
08df31eecc
commit
1e70105954
@ -938,10 +938,10 @@ void **nedpindependent_comalloc(nedpool *p, size_t elems, size_t *sizes, void **
|
|||||||
void **ret;
|
void **ret;
|
||||||
threadcache *tc;
|
threadcache *tc;
|
||||||
int mymspace;
|
int mymspace;
|
||||||
size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
|
size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
|
||||||
if(!adjustedsizes) return 0;
|
if(!adjustedsizes) return 0;
|
||||||
for(i=0; i<elems; i++)
|
for(i=0; i<elems; i++)
|
||||||
adjustedsizes[i]=sizes[i]<sizeof(threadcacheblk) ? sizeof(threadcacheblk) : sizes[i];
|
adjustedsizes[i]=sizes[i]<sizeof(threadcacheblk) ? sizeof(threadcacheblk) : sizes[i];
|
||||||
GetThreadCache(&p, &tc, &mymspace, 0);
|
GetThreadCache(&p, &tc, &mymspace, 0);
|
||||||
GETMSPACE(m, p, tc, mymspace, 0,
|
GETMSPACE(m, p, tc, mymspace, 0,
|
||||||
ret=mspace_independent_comalloc(m, elems, adjustedsizes, chunks));
|
ret=mspace_independent_comalloc(m, elems, adjustedsizes, chunks));
|
||||||
|
Loading…
Reference in New Issue
Block a user