fix: 兼容clang

This commit is contained in:
msojocs 2025-01-22 13:19:07 +08:00
parent 4919c7bf1b
commit 99b8cc7ffb
2 changed files with 1 additions and 10 deletions

View File

@ -1300,7 +1300,7 @@ namespace WXML {
/* code */
if (j->second.offset_56 == -3)
{
if (a14 & 1 == 0)
if ((a14 & 1) == 0)
{
auto err = this->Error(a2, j->second, j->first, j->second.offset_60);
throw "RenderException" + err;

View File

@ -1,9 +0,0 @@
#!/bin/bash
wget https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.gz
sudo mkdir /usr/local/gcc
tar -zxf gcc-5.4.0.tar.gz
cd gcc-5.4.0
./contrib/download_prerequisites
./configure --prefix=/usr/local/gcc/gcc-5.4.0 --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --disable-libsanitizer
make
sudo make install