Skip to content

Commit

Permalink
Correct pushing floats onto func_args
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Apr 8, 2010
1 parent 483e80e commit 7e1353d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plparrot.c
Expand Up @@ -205,10 +205,10 @@ plparrot_func_handler(PG_FUNCTION_ARGS)
Parrot_PMC_push_integer(interp, func_args, (Parrot_Int) PG_GETARG_INT64(i));
break;
case FLOAT4OID:
Parrot_PMC_push_float(interp, func_args, (Parrot_Int) PG_GETARG_FLOAT4(i));
Parrot_PMC_push_float(interp, func_args, (Parrot_Float) PG_GETARG_FLOAT4(i));
break;
case FLOAT8OID:
Parrot_PMC_push_float(interp, func_args, (Parrot_Int) PG_GETARG_FLOAT8(i));
Parrot_PMC_push_float(interp, func_args, (Parrot_Float) PG_GETARG_FLOAT8(i));
break;
default:
elog(ERROR,"PL/Parrot does not know how to convert the %u element type", element_type);
Expand Down

0 comments on commit 7e1353d

Please sign in to comment.