fix: Changing label order for only two labels could trigger EM (#2273)

* Fix definition for signed value

* Support changing order of the labels for two labels

* Swap labels when there is only two due to std::rotate limitation

* Change the order with swap.

* Map rebuid added
This commit is contained in:
eshifri
2022-09-07 18:29:59 +10:00
committed by GitHub
parent 58a6239ac5
commit 5f4def2f91
2 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
#if defined(_MSC_VER)
#define OPTION_VALUE_UNSIGNED(x) { uint32_t(x) }
#define OPTION_VALUE_SIGNED(x) { uint32_t(x) }
#define OPTION_VALUE_SIGNED(x) { int32_t(x) }
#define OPTION_VALUE_BOOL(x) { bool(x) }
#define OPTION_VALUE_STRING(...) { *(ZoneOptionValue *)(const char *) #__VA_ARGS__ }
#else