Wireshark-commits: [Wireshark-commits] master-2.4 c50b143: wslua: fix NSTime:__tostring for negativ

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 25 May 2018 19:50:19 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c50b1436e04d7c2576c2f7db24fc08a1f2f64e7c
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.4
Repository: wireshark

Commits:

c50b143 by Peter Wu (peter@xxxxxxxxxxxxx):

    wslua: fix NSTime:__tostring for negative values
    
    "nstime_t{A, B}" is defined as "A + B * 10^9" rather than an integer
    part A and fractional part B.
    
    Bug: 14720
    Change-Id: I5321db7d5ecea8f976291d2a22667b02162194e2
    Reviewed-on: https://code.wireshark.org/review/27775
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit a1e5a157802428cee7c01ada4def7c818ebfea82)
    Reviewed-on: https://code.wireshark.org/review/27815
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  74c84b6   smb: fix wrong exported smb2 object due to hash collision
    adds  c50b143   wslua: fix NSTime:__tostring for negative values


Summary of changes:
 epan/wslua/wslua_nstime.c | 32 ++++++++++++++++++++++++++++++--
 test/lua/nstime.lua       |  9 ++++++++-
 2 files changed, 38 insertions(+), 3 deletions(-)