Browse files

Fix braino in api_wrap/unwrap_pointer.

  • Loading branch information...
1 parent cc69a53 commit b65a8ba6f280150e10009b0060c90149c6c90d84 @bacek bacek committed Mar 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/embed/api.c
View
4 src/embed/api.c
@@ -898,10 +898,10 @@ Parrot_api_wrap_pointer(Parrot_PMC interp_pmc, ARGIN_NULLOK(void *ptr),
PMC * ptr_pmc = NULL;
if (size > 0) {
ptr_pmc = Parrot_pmc_new(interp, enum_class_PtrBuf);
- VTABLE_set_integer_native(interp, ptr_pmc, ptr);
+ VTABLE_set_integer_native(interp, ptr_pmc, size);
} else
ptr_pmc = Parrot_pmc_new(interp, enum_class_Ptr);
- VTABLE_set_pointer(interp, ptr_pmc, size);
+ VTABLE_set_pointer(interp, ptr_pmc, ptr);
*pmc = ptr_pmc;
EMBED_API_CALLOUT(interp_pmc, interp)
}

0 comments on commit b65a8ba

Please sign in to comment.