Skip to content

Commit

Permalink
removed type check ok for ++ on float
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Oct 11, 2023
1 parent e446ab3 commit 1b409e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/chuck_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2974,7 +2974,7 @@ t_CKTYPE type_engine_check_exp_unary( Chuck_Env * env, a_Exp_Unary unary )
}

// check type
if( !unary->ck_overload_func && ( isa( t, env->ckt_int ) || isa( t, env->ckt_float ) ) )
if( !unary->ck_overload_func && ( isa( t, env->ckt_int ) /*|| isa( t, env->ckt_float )*/ ) )
{
// emit as variable instead of value
unary->exp->emit_var = TRUE;
Expand Down Expand Up @@ -3820,7 +3820,7 @@ t_CKTYPE type_engine_check_exp_postfix( Chuck_Env * env, a_Exp_Postfix postfix )
// TODO: mark somewhere we need to post increment

// check type
if( !postfix->ck_overload_func && ( isa( t, env->ckt_int ) || isa( t, env->ckt_float ) ) )
if( !postfix->ck_overload_func && ( isa( t, env->ckt_int ) /*|| isa( t, env->ckt_float )*/ ) )
{
// emit as variable instead of value
postfix->exp->emit_var = TRUE;
Expand Down

0 comments on commit 1b409e7

Please sign in to comment.