Skip to content

Commit a36a497

Browse files
committed
Fix channel_bytes of string type
1 parent cdf917d commit a36a497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream_info_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ bool query_cache::matches_query(const xml_document &doc, const std::string &quer
243243
}
244244

245245
int stream_info_impl::channel_bytes() const {
246-
const int channel_format_sizes[] = {0, sizeof(float), sizeof(double), sizeof(std::string),
246+
const int channel_format_sizes[] = {0, sizeof(float), sizeof(double), 0,
247247
sizeof(int32_t), sizeof(int16_t), sizeof(int8_t), 8};
248248
return channel_format_sizes[channel_format_];
249249
}

0 commit comments

Comments
 (0)