1 To: [email protected] |
|
2 Subject: Patch 7.2.081 |
|
3 Fcc: outbox |
|
4 From: Bram Moolenaar <[email protected]> |
|
5 Mime-Version: 1.0 |
|
6 Content-Type: text/plain; charset=ISO-8859-1 |
|
7 Content-Transfer-Encoding: 8bit |
|
8 ------------ |
|
9 |
|
10 Patch 7.2.081 |
|
11 Problem: Compiler warning for floating point overflow on VAX. |
|
12 Solution: For VAX use a smaller number. (Zoltan Arpadffy) |
|
13 Files: src/message.c |
|
14 |
|
15 |
|
16 *** ../vim-7.2.080/src/message.c Fri Nov 28 21:26:50 2008 |
|
17 --- src/message.c Tue Jan 13 16:19:07 2009 |
|
18 *************** |
|
19 *** 4556,4562 **** |
|
20 remove_trailing_zeroes = TRUE; |
|
21 } |
|
22 |
|
23 ! if (fmt_spec == 'f' && abs_f > 1.0e307) |
|
24 { |
|
25 /* Avoid a buffer overflow */ |
|
26 strcpy(tmp, "inf"); |
|
27 --- 4556,4568 ---- |
|
28 remove_trailing_zeroes = TRUE; |
|
29 } |
|
30 |
|
31 ! if (fmt_spec == 'f' && |
|
32 ! #ifdef VAX |
|
33 ! abs_f > 1.0e38 |
|
34 ! #else |
|
35 ! abs_f > 1.0e307 |
|
36 ! #endif |
|
37 ! ) |
|
38 { |
|
39 /* Avoid a buffer overflow */ |
|
40 strcpy(tmp, "inf"); |
|
41 *** ../vim-7.2.080/src/version.c Tue Jan 13 12:29:03 2009 |
|
42 --- src/version.c Tue Jan 13 16:19:52 2009 |
|
43 *************** |
|
44 *** 678,679 **** |
|
45 --- 678,681 ---- |
|
46 { /* Add new patch number below this line */ |
|
47 + /**/ |
|
48 + 81, |
|
49 /**/ |
|
50 |
|
51 -- |
|
52 Sometimes you can protect millions of dollars in your budget simply by buying |
|
53 a bag of cookies, dropping it on the budget anylyst's desk, and saying |
|
54 something deeply personal such as "How was your weekend, big guy?" |
|
55 (Scott Adams - The Dilbert principle) |
|
56 |
|
57 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ |
|
58 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
|
59 \\\ download, build and distribute -- http://www.A-A-P.org /// |
|
60 \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |
|