Skip to content

Commit

Permalink
Use a valid SupportedArch for default-initialized Registers to av…
Browse files Browse the repository at this point in the history
…oid undefined behavior
  • Loading branch information
rocallahan committed Mar 7, 2024
1 parent 1fe20ff commit fe0e8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Registers.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Registers {
public:
enum { MAX_SIZE = 16 };

Registers(SupportedArch a = SupportedArch(-1)) : arch_(a) {
Registers(SupportedArch a = x86) : arch_(a) {
memset(&u, 0, sizeof(u));
}

Expand Down

0 comments on commit fe0e8be

Please sign in to comment.