diff src/ex_cmds.c @ 7844:6669966db9e9 v7.4.1219

commit https://github.com/vim/vim/commit/937204a9175d0fe2f13c8bc4ebeb043003d7e7d7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 30 23:37:38 2016 +0100 patch 7.4.1219 Problem: Build fails with +channel but without +float. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jan 2016 23:45:04 +0100
parents f86adafb28d4
children 2f7ad0b85929
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -520,7 +520,11 @@ ex_sort(exarg_T *eap)
 	    if (regmatch.regprog != NULL)
 		end_col = 0;
 
-	if (sort_nr || sort_flt)
+	if (sort_nr
+#ifdef FEAT_FLOAT
+		|| sort_flt
+#endif
+		)
 	{
 	    /* Make sure vim_str2nr doesn't read any digits past the end
 	     * of the match, by temporarily terminating the string there */