1
0
mirror of synced 2024-11-28 17:40:51 +01:00

fix: Buffer to integer node not working correctly

This commit is contained in:
WerWolv 2023-09-03 15:41:00 +02:00
parent dc5e5344c5
commit 26f4aa0d9f

View File

@ -532,7 +532,7 @@ namespace hex::plugin::builtin {
void process() override { void process() override {
const auto &input = this->getBufferOnInput(0); const auto &input = this->getBufferOnInput(0);
i64 output = 0; i128 output = 0;
if (input.empty() || input.size() > sizeof(output)) if (input.empty() || input.size() > sizeof(output))
throwNodeError("Buffer is empty or bigger than 64 bits"); throwNodeError("Buffer is empty or bigger than 64 bits");