[PATCH 1/2]vbscript: Implemented builtin function CInt

Zhan Jianyu nasa4836 at gmail.com
Tue May 21 08:47:00 CDT 2013


(This is a re-submitted patch due to applying failure of the
previous one.)

This patch is built based on Jaceks's newly-submitted patch:

    commit 48a862306288d69d3623d5ecdc0f5a5a40addafe
    ( vbscript: Round half to even in to_int)

Thanks, Jacek. :-)

With his patch, CInt could be implementd in a clean way, without
any introduced helper function.

This patch also add tests for any corner cases, and it has passed testbot's
testing.

---
 dlls/vbscript/global.c      |   14 ++++++++++++--
 dlls/vbscript/tests/api.vbs |   23 +++++++++++++++++++++++
 2 files changed, 35 insertions(+), 2 deletions(-)

--

Regards,
Zhan Jianyu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vbscript-implement-builtin-CInt.patch
Type: application/octet-stream
Size: 2980 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130521/e3003204/attachment.obj>


More information about the wine-patches mailing list