fix missing break in switch

This commit is contained in:
silverweed 2024-09-19 15:11:35 +02:00
parent 4176cfe107
commit ce4e84f8b1
2 changed files with 5 additions and 2 deletions

View file

@ -171,6 +171,8 @@ struct Sec_Hover_Fn {
{
TStrSize str_size = read_buf<TStrSize>(data + start, cur_field_off);
u8 *buf = nullptr;
if (str_size > 1000) // DEBUG
return str8("");
if (str_size > 0) {
buf = arena_push_array_nozero<u8>(arena, str_size + 1);
memcpy(buf, data + start + cur_field_off, str_size);
@ -666,7 +668,7 @@ Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, co
}
}
break;
case Sec_RNTuple_Footer:
case Sec_RNTuple_Footer: {
if (!hover.tkey()) {
b8 zipped;
if (!hover.maybe_rootzip(&zipped)) {
@ -690,6 +692,7 @@ Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, co
}
}
}
} break;
case Sec_Page_List: {
hover.tkey()
|| hover.maybe_rootzip()

View file

@ -1,4 +1,4 @@
#include <ROOT/RNTupleSerialize.hxx>
#include <ROOT/RNTupleDescriptor.hxx>
#include <ROOT/RNTupleZip.hxx>
#include <ROOT/RColumnElement.hxx>
#include <ROOT/RColumnElementBase.hxx>