Suppress snprintf "output may be truncated" warnings
commitb76f1e4b5fc02d78ad8e5962bcb29b9a952e41c9
authorAlexey Toptygin <alexeyt@fb.com>
Sat, 26 Jan 2019 05:48:04 +0000 (25 21:48 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sat, 26 Jan 2019 05:50:55 +0000 (25 21:50 -0800)
tree381304bc5175b800703ce074530f02dce9042823
parentb6867d8a4b2bf438c5aad6bd3d6e477cc51e57c1
Suppress snprintf "output may be truncated" warnings

Summary: The values happen to always be in range to fit into 2 digits, but the compiler doesn't know this so it yells at us every time it rebuilds these files. Add some % 100s (with explanatory comments) to convince the compiler that we will only ever be outputting 2 digits.

Reviewed By: ricklavoie

Differential Revision: D13823100

fbshipit-source-id: 2c827a114597a926a09bf6aa9fc15d6666f8a63a
hphp/runtime/base/datetime.cpp
hphp/runtime/base/timezone.cpp