Skip to content

Commit ff7d947

Browse files
committed
fix reflect on f32 param (close #670)
1 parent 068bb35 commit ff7d947

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/jit.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -2342,10 +2342,8 @@ static void *callback_c2hl( void **f, hl_type *t, void **args, vdynamic *ret ) {
23422342
*(int_val*)store = *(int*)v;
23432343
break;
23442344
case HF32:
2345-
{
2346-
double d = (double)*(float*)v;
2347-
*(double*)store = d;
2348-
}
2345+
*(void**)store = 0;
2346+
*(float*)store = *(float*)v;
23492347
break;
23502348
case HF64:
23512349
*(double*)store = *(double*)v;

0 commit comments

Comments
 (0)