We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ad773c commit 7eb70c6Copy full SHA for 7eb70c6
1 file changed
thecl/ecsscan.l
@@ -168,8 +168,8 @@ ins_[0-9]+ {
168
return INTEGER;
169
}
170
#[0-9a-fA-F]{8} {
171
- uint32_t color_integer = strtoul(yytext+1, NULL, 16);
172
- yylval.integer = _byteswap_ulong(color_integer);
+ uint32_t color_int = strtoul(yytext+1, NULL, 16);
+ yylval.integer = (color_int & 0xFF000000) >> 24 | (color_int & 0xFF0000) >> 8 | (color_int & 0xFF00) << 8 | (color_int & 0xFF) << 24;
173
174
175
"false" {
0 commit comments