Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/hx/cppia/Cppia.h
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,14 @@ struct NAME \
ioVal = left OP f; \
return ioVal; \
} \
inline static int &run(int &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) \
{ \
int left = ioVal; \
int i = value->runInt(ctx); \
BCR_CHECK_RET(ioVal); \
ioVal = left OP i; \
return ioVal; \
} \
static bool run(bool &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) { value->runVoid(ctx); return ioVal; } \
static String run(String &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) { value->runVoid(ctx); return ioVal; } \
static hx::Object *run(hx::Object * &ioVal, hx::CppiaCtx *ctx, hx::CppiaExpr *value) \
Expand Down
8 changes: 8 additions & 0 deletions test/cppia/Client.hx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ class Client
default:
}

// regression test for #1257
var x = 1290555;
x *= 1290555;
if (x != -915102823) {
Common.status = 'Failed regression test for #1257. x: $x';
return;
}

final extending = new ClientExtendedExtendedRoot();

extending.addValue();
Expand Down
Loading