File tree Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -1831,26 +1831,27 @@ allocate_string_data (struct Lisp_String *s,
1831
1831
b -> next_free = data ;
1832
1832
large_sblocks = b ;
1833
1833
}
1834
- else if (current_sblock == NULL
1835
- || (((char * ) current_sblock + SBLOCK_SIZE
1836
- - (char * ) current_sblock -> next_free )
1837
- < (needed + GC_STRING_EXTRA )))
1838
- {
1839
- /* Not enough room in the current sblock. */
1840
- b = lisp_malloc (SBLOCK_SIZE , false, MEM_TYPE_NON_LISP );
1841
- data = b -> data ;
1842
- b -> next = NULL ;
1843
- b -> next_free = data ;
1844
-
1845
- if (current_sblock )
1846
- current_sblock -> next = b ;
1847
- else
1848
- oldest_sblock = b ;
1849
- current_sblock = b ;
1850
- }
1851
1834
else
1852
1835
{
1853
1836
b = current_sblock ;
1837
+
1838
+ if (b == NULL
1839
+ || (SBLOCK_SIZE - GC_STRING_EXTRA
1840
+ < (char * ) b -> next_free - (char * ) b + needed ))
1841
+ {
1842
+ /* Not enough room in the current sblock. */
1843
+ b = lisp_malloc (SBLOCK_SIZE , false, MEM_TYPE_NON_LISP );
1844
+ data = b -> data ;
1845
+ b -> next = NULL ;
1846
+ b -> next_free = data ;
1847
+
1848
+ if (current_sblock )
1849
+ current_sblock -> next = b ;
1850
+ else
1851
+ oldest_sblock = b ;
1852
+ current_sblock = b ;
1853
+ }
1854
+
1854
1855
data = b -> next_free ;
1855
1856
if (clearit )
1856
1857
memset (SDATA_DATA (data ), 0 , nbytes );
You can’t perform that action at this time.
0 commit comments