| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.778 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.778 |
| Problem: Compiler error for adding up two pointers. (Titov Anatoly) |
| Solution: Add a type cast. (Ken Takata) |
| Files: src/mbyte.c |
| |
| |
| |
| |
| |
| *** 4325,4331 **** |
| { |
| if (IMAGE_SNAP_BY_ORDINAL(pINT->u1.Ordinal)) |
| continue; |
| ! pImpName = (PIMAGE_IMPORT_BY_NAME)(pImage + pINT->u1.AddressOfData); |
| if (strcmp(pImpName->Name, funcname) == 0) |
| return (void *)pIAT->u1.Function; |
| } |
| --- 4325,4332 ---- |
| { |
| if (IMAGE_SNAP_BY_ORDINAL(pINT->u1.Ordinal)) |
| continue; |
| ! pImpName = (PIMAGE_IMPORT_BY_NAME)(pImage |
| ! + (UINT_PTR)(pINT->u1.AddressOfData)); |
| if (strcmp(pImpName->Name, funcname) == 0) |
| return (void *)pIAT->u1.Function; |
| } |
| |
| |
| |
| *** 727,728 **** |
| --- 727,730 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 778, |
| /**/ |
| |
| -- |
| 'I generally avoid temptation unless I can't resist it." |
| -- Mae West |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |