Skip to content

Commit e8a375f

Browse files
committed
fix build
1 parent 8072c30 commit e8a375f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Processors/Formats/Impl/ArrowGeoTypes.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ inline ArrowPoint parseWKTPoint(ReadBuffer & in_buffer)
192192
char ch;
193193
while (true)
194194
{
195-
in_buffer.peek(ch);
195+
if (!in_buffer.peek(ch))
196+
break;
196197
if (ch != ' ')
197198
break;
198199
in_buffer.ignore();
@@ -273,7 +274,8 @@ ArrowGeometricObject parseWKTFormat(ReadBuffer & in_buffer)
273274
while (true)
274275
{
275276
char current_symbol;
276-
in_buffer.peek(current_symbol);
277+
if (!in_buffer.peek(current_symbol))
278+
break;
277279
if (current_symbol == '(')
278280
break;
279281
type.push_back(current_symbol);

0 commit comments

Comments
 (0)