Skip to content

Commit

Permalink
Fixed a setter issue that affects some unit tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobambini committed Jul 22, 2021
1 parent 6ec69ff commit a135732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/runtime/gravity_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ static bool gravity_vm_exec (gravity_vm *vm) {
// check for special setter trick
if (VALUE_ISA_CLOSURE(STACK_GET(r1))) {
closure = VALUE_AS_CLOSURE(STACK_GET(r1));
if (closure->f->tag == EXEC_TYPE_INTERNAL) r1copy = STACK_GET(rwin+1);
SETVALUE(r1, r1copy);
reset_r1 = true;
goto execute_store_function;
Expand Down
4 changes: 2 additions & 2 deletions src/shared/gravity_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
extern "C" {
#endif

#define GRAVITY_VERSION "0.8.4" // git tag 0.8.4
#define GRAVITY_VERSION_NUMBER 0x000804 // git push --tags
#define GRAVITY_VERSION "0.8.5" // git tag 0.8.5
#define GRAVITY_VERSION_NUMBER 0x000805 // git push --tags
#define GRAVITY_BUILD_DATE __DATE__

#ifndef GRAVITY_ENABLE_DOUBLE
Expand Down

0 comments on commit a135732

Please sign in to comment.