shapito: fix is_null check in shapito_be_write_data_row_add()

This commit is contained in:
Dmitry Simonenko 2017-08-04 18:00:53 +03:00
parent 2a296145e4
commit fa02d43f6a
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ SHAPITO_API static inline int
shapito_be_write_data_row_add(shapito_stream_t *stream, int start, char *data, int32_t len)
{
int is_null = len == -1;
int size = sizeof(uint32_t) + (is_null) ? 0 : len;
int size = sizeof(uint32_t) + (is_null ? 0 : len);
int rc = shapito_stream_ensure(stream, size);
if (shapito_unlikely(rc == -1))
return -1;