koffi 1.2.0-alpha.1 → 1.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koffi",
3
- "version": "1.2.0-alpha.1",
3
+ "version": "1.2.0-alpha.2",
4
4
  "description": "Fast and simple C FFI (foreign function interface) for Node.js",
5
5
  "keywords": [
6
6
  "foreign",
@@ -774,7 +774,7 @@ void CallData::Relay(Size idx, uint8_t *own_sp, uint8_t *caller_sp, BackRegister
774
774
  return;
775
775
  out_reg->a0 = (uint64_t)return_ptr;
776
776
  } else if (proto->ret.vec_count) { // HFA
777
- PushObject(obj, type, (uint8_t *)&out_reg->fa0, 8)
777
+ PushObject(obj, type, (uint8_t *)&out_reg->fa0, 8);
778
778
  } else {
779
779
  PushObject(obj, type, (uint8_t *)&out_reg->a0);
780
780
  }
@@ -809,7 +809,7 @@ void CallData::Relay(Size idx, uint8_t *own_sp, uint8_t *caller_sp, BackRegister
809
809
  return;
810
810
  out_reg->rax = (uint64_t)return_ptr;
811
811
  } else {
812
- RG_ASSERT(tpye->size <= 16);
812
+ RG_ASSERT(type->size <= 16);
813
813
 
814
814
  uint8_t buf[16] = {};
815
815
  if (!PushObject(obj, type, buf))
@@ -825,7 +825,7 @@ void CallData::Relay(Size idx, uint8_t *own_sp, uint8_t *caller_sp, BackRegister
825
825
  memcpy(&out_reg->xmm0, buf + 0, 8);
826
826
  memcpy(&out_reg->xmm1, buf + 8, 8);
827
827
  } else {
828
- memcpy(&out_reg->xm0, buf + 0, 8);
828
+ memcpy(&out_reg->xmm0, buf + 0, 8);
829
829
  memcpy(&out_reg->rax, buf + 8, 8);
830
830
  }
831
831
  }