Merge changes I251a3ca6,Ia427d5e4
* changes:
tp: refactor code to split fuchsia_record and systrace_line
tp: move storage_full to importers_full
diff --git a/src/trace_processor/trace_sorter_queue.h b/src/trace_processor/trace_sorter_queue.h
index c277898..9fa334b 100644
--- a/src/trace_processor/trace_sorter_queue.h
+++ b/src/trace_processor/trace_sorter_queue.h
@@ -237,12 +237,12 @@
template <typename T>
T ExtractFromPacked(uint8_t bits, uint8_t shift) const {
- return static_cast<T>(packed_ >> shift & ((1 << bits) - 1));
+ return static_cast<T>(packed_ >> shift & ((1ull << bits) - 1));
}
static bool FitsInBits(uint64_t value, uint8_t bits) {
PERFETTO_DCHECK(bits > 0);
- return value < (1 << bits);
+ return value < (1ull << bits);
}
uint64_t packed_ = 0;