Skip to content

Commit 5932340

Browse files
authored
Merge branch 'HaxeFoundation:master' into funkin
2 parents 7a03b13 + 767fe94 commit 5932340

4 files changed

Lines changed: 22 additions & 16 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
arch: 64
4343
sep: /
4444
ext: .dylib
45-
os: macos-13
45+
os: macos-15-intel
4646

4747
MacOSArm:
4848
strategy:

.github/workflows/test.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,26 +147,14 @@ jobs:
147147
uses: ./.github/workflows/setup
148148
with:
149149
haxe: ${{ inputs.haxe }}
150-
- name: install mariadb
150+
- name: setup mariadb
151151
if: runner.os == 'Linux'
152152
run: |
153153
set -ex
154-
sudo rm -R /var/lib/mysql/
155-
curl -sSL https://downloads.mariadb.com/MariaDB/mariadb_repo_setup > mariadb_repo_setup
156-
curl -sSL https://downloads.mariadb.com/MariaDB/mariadb_repo_setup.sha256 > mariadb_repo_setup.sha256
157-
sha256sum --check mariadb_repo_setup.sha256
158-
sudo bash mariadb_repo_setup
159154
sudo apt-get update -qqy
160-
sudo apt-get remove -qqy mysql-common
161-
sudo apt-get autoremove -qqy
162155
sudo apt-get install -qqy mariadb-server
163-
- name: configure mariadb
164-
if: runner.os == 'Linux'
165-
run: |
166-
set -ex
167-
sudo systemctl unmask mysql.service
168-
sudo systemctl start mysql
169-
sudo mysql -u root -e "create database hxcpp; grant all privileges on hxcpp.* to hxcpp@localhost identified by 'hxcpp'; flush privileges;"
156+
sudo systemctl start mariadb
157+
sudo mariadb -u root -e "create database hxcpp; grant all privileges on hxcpp.* to hxcpp@localhost identified by 'hxcpp'; flush privileges;"
170158
- name: build
171159
run: haxe compile${{ inputs.arch }}.hxml
172160
- name: run
@@ -227,6 +215,8 @@ jobs:
227215
haxe: ${{ inputs.haxe }}
228216
- name: install haxe libs
229217
run: haxelib install compile-cpp.hxml --always
218+
# haxe 4 tests don't build with latest utest
219+
if: inputs.haxe != 'latest'
230220
- name: build
231221
run: haxe compile-cpp.hxml -D ${{ env.HXCPP_ARCH_FLAG }} -D no_http
232222
- name: run

src/hx/cppia/Cppia.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,14 @@ struct NAME \
10831083
ioVal = left OP f; \
10841084
return ioVal; \
10851085
} \
1086+
inline static int &run(int &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) \
1087+
{ \
1088+
int left = ioVal; \
1089+
int i = value->runInt(ctx); \
1090+
BCR_CHECK_RET(ioVal); \
1091+
ioVal = left OP i; \
1092+
return ioVal; \
1093+
} \
10861094
static bool run(bool &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) { value->runVoid(ctx); return ioVal; } \
10871095
static String run(String &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) { value->runVoid(ctx); return ioVal; } \
10881096
static hx::Object *run(hx::Object * &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) \

test/cppia/Client.hx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ class Client
197197
return;
198198
}
199199

200+
// regression test for #1257
201+
var x = 1290555;
202+
x *= 1290555;
203+
if (x != -915102823) {
204+
Common.status = 'Failed regression test for #1257. x: $x';
205+
return;
206+
}
207+
200208
final extending = new ClientExtendedExtendedRoot();
201209

202210
extending.addValue();

0 commit comments

Comments
 (0)