--fried only currently supported on little-endian (will fix eventually)

This commit is contained in:
Doug Hoyte
2024-09-03 21:08:48 -04:00
parent 01dcf844b5
commit bcf765a0da
2 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,8 @@ void cmd_export(const std::vector<std::string> &subArgs) {
std::string_view json = getEventJson(txn, decomp, levId);
if (fried) {
if (std::endian::native != std::endian::little) throw herr("--fried currently only supported on little-endian CPUs"); // FIXME
auto ev = lookupEventByLevId(txn, levId);
o.clear();

View File

@ -73,6 +73,8 @@ void cmd_import(const std::vector<std::string> &subArgs) {
std::string line(buf, (size_t)numRead-1);
if (fried) {
if (std::endian::native != std::endian::little) throw herr("--fried currently only supported on little-endian CPUs"); // FIXME
try {
writer.write(parseFried(line));
} catch (std::exception &e) {