Karsten Hopp 1e3f20
To: vim-dev@vim.org
Karsten Hopp 1e3f20
Subject: Patch 7.2.081
Karsten Hopp 1e3f20
Fcc: outbox
Karsten Hopp 1e3f20
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 1e3f20
Mime-Version: 1.0
Karsten Hopp 1e3f20
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 1e3f20
Content-Transfer-Encoding: 8bit
Karsten Hopp 1e3f20
------------
Karsten Hopp 1e3f20
Karsten Hopp 1e3f20
Patch 7.2.081
Karsten Hopp 1e3f20
Problem:    Compiler warning for floating point overflow on VAX.
Karsten Hopp 1e3f20
Solution:   For VAX use a smaller number. (Zoltan Arpadffy)
Karsten Hopp 1e3f20
Files:	    src/message.c
Karsten Hopp 1e3f20
Karsten Hopp 1e3f20
Karsten Hopp 1e3f20
*** ../vim-7.2.080/src/message.c	Fri Nov 28 21:26:50 2008
Karsten Hopp 1e3f20
--- src/message.c	Tue Jan 13 16:19:07 2009
Karsten Hopp 1e3f20
***************
Karsten Hopp 1e3f20
*** 4556,4562 ****
Karsten Hopp 1e3f20
  			remove_trailing_zeroes = TRUE;
Karsten Hopp 1e3f20
  		    }
Karsten Hopp 1e3f20
  
Karsten Hopp 1e3f20
! 		    if (fmt_spec == 'f' && abs_f > 1.0e307)
Karsten Hopp 1e3f20
  		    {
Karsten Hopp 1e3f20
  			/* Avoid a buffer overflow */
Karsten Hopp 1e3f20
  			strcpy(tmp, "inf");
Karsten Hopp 1e3f20
--- 4556,4568 ----
Karsten Hopp 1e3f20
  			remove_trailing_zeroes = TRUE;
Karsten Hopp 1e3f20
  		    }
Karsten Hopp 1e3f20
  
Karsten Hopp 1e3f20
! 		    if (fmt_spec == 'f' &&
Karsten Hopp 1e3f20
! #ifdef VAX
Karsten Hopp 1e3f20
! 			    abs_f > 1.0e38
Karsten Hopp 1e3f20
! #else
Karsten Hopp 1e3f20
! 			    abs_f > 1.0e307
Karsten Hopp 1e3f20
! #endif
Karsten Hopp 1e3f20
! 			    )
Karsten Hopp 1e3f20
  		    {
Karsten Hopp 1e3f20
  			/* Avoid a buffer overflow */
Karsten Hopp 1e3f20
  			strcpy(tmp, "inf");
Karsten Hopp 1e3f20
*** ../vim-7.2.080/src/version.c	Tue Jan 13 12:29:03 2009
Karsten Hopp 1e3f20
--- src/version.c	Tue Jan 13 16:19:52 2009
Karsten Hopp 1e3f20
***************
Karsten Hopp 1e3f20
*** 678,679 ****
Karsten Hopp 1e3f20
--- 678,681 ----
Karsten Hopp 1e3f20
  {   /* Add new patch number below this line */
Karsten Hopp 1e3f20
+ /**/
Karsten Hopp 1e3f20
+     81,
Karsten Hopp 1e3f20
  /**/
Karsten Hopp 1e3f20
Karsten Hopp 1e3f20
-- 
Karsten Hopp 1e3f20
Sometimes you can protect millions of dollars in your budget simply by buying
Karsten Hopp 1e3f20
a bag of cookies, dropping it on the budget anylyst's desk, and saying
Karsten Hopp 1e3f20
something deeply personal such as "How was your weekend, big guy?"
Karsten Hopp 1e3f20
				(Scott Adams - The Dilbert principle)
Karsten Hopp 1e3f20
Karsten Hopp 1e3f20
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 1e3f20
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 1e3f20
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 1e3f20
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///