~sircmpwn/harec unlisted

b5ae44efb55c923a8fdec5bf5326bf92481fd3be — Eyal Sawady a month ago 74d160f
eval_cast: implement floats

Signed-off-by: Eyal Sawady <ecs@d2evs.net>
1 files changed, 2 insertions(+), 0 deletions(-)

M src/eval.c
M src/eval.c => src/eval.c +2 -0
@@ 424,6 424,8 @@ eval_cast(struct context *ctx, struct expression *in, struct expression *out)
	case STORAGE_F32:
	case STORAGE_F64:
	case STORAGE_FCONST:
		out->constant.fval = ftrunc(to, val.constant.fval);
		return EVAL_OK;
	case STORAGE_CHAR:
	case STORAGE_ENUM:
	case STORAGE_NULL: