Skip to content

Commit 5fac467

Browse files
committed
patch 7.4.1474
Problem: Compiler warnings without the float feature. Solution: Move #ifdefs. (John Marriott)
1 parent d1413d9 commit 5fac467

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/eval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,8 +3152,8 @@ tv_op(typval_T *tv1, typval_T *tv2, char_u *op)
31523152
}
31533153
return OK;
31543154

3155-
#ifdef FEAT_FLOAT
31563155
case VAR_FLOAT:
3156+
#ifdef FEAT_FLOAT
31573157
{
31583158
float_T f;
31593159

@@ -3170,8 +3170,8 @@ tv_op(typval_T *tv1, typval_T *tv2, char_u *op)
31703170
else
31713171
tv1->vval.v_float -= f;
31723172
}
3173-
return OK;
31743173
#endif
3174+
return OK;
31753175
}
31763176
}
31773177

@@ -8011,8 +8011,8 @@ tv2string(
80118011
case VAR_STRING:
80128012
*tofree = string_quote(tv->vval.v_string, FALSE);
80138013
return *tofree;
8014-
#ifdef FEAT_FLOAT
80158014
case VAR_FLOAT:
8015+
#ifdef FEAT_FLOAT
80168016
*tofree = NULL;
80178017
vim_snprintf((char *)numbuf, NUMBUFLEN - 1, "%g", tv->vval.v_float);
80188018
return numbuf;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1474,
746748
/**/
747749
1473,
748750
/**/

0 commit comments

Comments
 (0)