Skip to content
  • Philip Withnall's avatar
    gmain.c: Fix comment about Y2038 safety of g_get_real_time() · 14b087ea
    Philip Withnall authored
    This comment was correct until commit adf1f98f
    
    , when the `GTimeVal`
    which the result was put into (introducing the Y2038-unsafety) was
    dropped.
    
    The adjustment and scaling of the `FILETIME` should not make it
    Y2038-unsafe: the maximum `FILETIME` is 2^64-1. Subtracting the epoch
    adjustment and dividing by 10 gives the timestamp 1833029933770955161,
    which is in June 58086408216 (at just after 3am UTC). I think that’s
    enough time to be going on with.
    
    Signed-off-by: default avatarPhilip Withnall <withnall@endlessm.com>
    
    Helps: #1438
    14b087ea