diff --git a/src/m0/c/m0_ops.c b/src/m0/c/m0_ops.c index a11c354628..780266d7d8 100644 --- a/src/m0/c/m0_ops.c +++ b/src/m0/c/m0_ops.c @@ -69,7 +69,7 @@ static void m0_op_print_n( M0_CallFrame *frame, const unsigned char *ops ) { /* note the lack of filehandle selection (ops[1]) for output */ - fprintf( stdout, "%.15g", (unsigned long)frame->registers[ ops[2] ] ); + fprintf( stdout, "%f", *(double*)&frame->registers[ ops[2] ] ); } static void