You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2271dfc
Browse filesBrowse the repository at this point in the historyBrowse files
auto view = rans::trim(rans::HistogramView{block.getDict(), block.getDict() + block.getNDict(), metadata.min});
383
+
constint64_t dictMin = view.getMin();
384
+
constint64_t dictMax = view.getMax();
385
+
assert(dictMin >= metadata.min);
386
+
assert(dictMax <= metadata.max);
387
+
388
+
if ((dictMin < sourceMin) || (dictMax > sourceMax)) {
389
+
throwstd::runtime_error(fmt::format("value range of dictionary and target datatype are incompatible: target type [{},{}] vs dictionary [{},{}]", sourceMin, sourceMax, dictMin, dictMax));
Copy file name to clipboardExpand all lines: Utilities/rANS/include/rANS/internal/containers/DenseHistogram.h
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -586,7 +586,16 @@ auto DenseHistogram<source_T, std::enable_if_t<sizeof(source_T) <= 2>>::addFrequ
586
586
addedHistogramView = trim(addedHistogramView);
587
587
588
588
ifconstexpr (std::is_unsigned_v<source_T>) {
589
-
LOG_IF(warning, addedHistogramView.getMin() < 0) << fmt::format("trying to add frequencies for a signed symbol to a DenseHistogram of an unsiged type.");
589
+
LOG_IF(warning, addedHistogramView.getMin() < 0) << fmt::format("trying to add frequencies of a signed symbol type to a DenseHistogram of an unsiged type.");
0 commit comments