vn-tools / arc_unpacker

CLI tool for extracting images and sounds from visual novels.
GNU General Public License v3.0
561 stars 83 forks source link

Fix build: add missing <stdexcept> import #194

Closed futile closed 3 years ago

futile commented 3 years ago

std::logic_error is used in this file, which resides in <stdexcept>, but was not imported before.

This caused the build to fail, see, e.g., https://hydra.nixos.org/build/141997371/log:

[...]
build/source/src/algo/crypt/lcg.cc: In constructor 'au::algo::crypt::Lcg::Lcg(au::algo::crypt::LcgKind, au::u32)':
/build/source/src/algo/crypt/lcg.cc:70:24: error: 'logic_error' is not a member of 'std'
   70 |             throw std::logic_error("Unknown LCG kind");
      |                        ^~~~~~~~~~~
make[2]: *** [CMakeFiles/libau.dir/build.make:160: CMakeFiles/libau.dir/src/algo/crypt/lcg.cc.o] Error 1
[...]