1 To: [email protected] |
|
2 Subject: Patch 7.2.158 |
|
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.158 |
|
11 Problem: Warnings from VisualC compiler. |
|
12 Solution: Add type casts. (George Reilly) |
|
13 Files: src/ops.c |
|
14 |
|
15 |
|
16 *** ../vim-7.2.157/src/ops.c Wed Mar 11 16:26:01 2009 |
|
17 --- src/ops.c Wed Apr 22 13:01:46 2009 |
|
18 *************** |
|
19 *** 495,504 **** |
|
20 block_space_width = non_white_col - oap->start_vcol; |
|
21 /* We will shift by "total" or "block_space_width", whichever is less. |
|
22 */ |
|
23 ! shift_amount = (block_space_width < total? block_space_width: total); |
|
24 |
|
25 /* The column to which we will shift the text. */ |
|
26 ! destination_col = non_white_col - shift_amount; |
|
27 |
|
28 /* Now let's find out how much of the beginning of the line we can |
|
29 * reuse without modification. */ |
|
30 --- 495,505 ---- |
|
31 block_space_width = non_white_col - oap->start_vcol; |
|
32 /* We will shift by "total" or "block_space_width", whichever is less. |
|
33 */ |
|
34 ! shift_amount = (block_space_width < (size_t)total |
|
35 ! ? block_space_width : (size_t)total); |
|
36 |
|
37 /* The column to which we will shift the text. */ |
|
38 ! destination_col = (colnr_T)(non_white_col - shift_amount); |
|
39 |
|
40 /* Now let's find out how much of the beginning of the line we can |
|
41 * reuse without modification. */ |
|
42 *** ../vim-7.2.157/src/version.c Wed Apr 22 16:42:24 2009 |
|
43 --- src/version.c Wed Apr 22 17:42:19 2009 |
|
44 *************** |
|
45 *** 678,679 **** |
|
46 --- 678,681 ---- |
|
47 { /* Add new patch number below this line */ |
|
48 + /**/ |
|
49 + 158, |
|
50 /**/ |
|
51 |
|
52 -- |
|
53 ARTHUR: What? |
|
54 BLACK KNIGHT: None shall pass. |
|
55 ARTHUR: I have no quarrel with you, good Sir knight, but I must cross |
|
56 this bridge. |
|
57 BLACK KNIGHT: Then you shall die. |
|
58 The Quest for the Holy Grail (Monty Python) |
|
59 |
|
60 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ |
|
61 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
|
62 \\\ download, build and distribute -- http://www.A-A-P.org /// |
|
63 \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |
|