ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] Multiple break statements in one struct, only last one will trigger

Open RigoLigoRLC opened this issue 2 years ago • 0 comments

Operating System

Windows

What's the issue you encountered?

If I have multiple break statements in one struct, only the last one will trigger. In this example, the first one does not do anything 图片

How can the issue be reproduced?

图片

#include <std/core.pat>

struct foo {
    u8 a;
    if(std::core::array_index() == 0) break;
    if(std::core::array_index() == 5) break;
    if(std::core::array_index() == 20) break;
};

foo bar[300] @ 0;

ImHex Version

1.27.1

ImHex Build Type

  • [X] Nightly or built from sources

Installation type

MSI

Additional context?

No response

RigoLigoRLC avatar Feb 28 '23 02:02 RigoLigoRLC