diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-09-06 06:20:41 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-09-18 11:06:53 -0700 |
commit | 474251b1e6a827982f42c986c00a4a8a186ee1dc (patch) | |
tree | f55d12315bbc70c90917d8da7b8f58f2ee36bb89 /extras | |
parent | acc0b3f93e74e914ee345e9e89619c8411596bdf (diff) |
Do not assume sizeof(size_t)
This fixes an assumption that sizeof(size_t) == sizeof(uint64_t), which
is not guaranteed. At least on NetBSD/i386, size_t is 32 bit long.
Caught by tests/basics/file-snapshot.t
This is a backport of Ib7620a2ffe8758521886af37bc280101a040d860
BUG: 1138897
Change-Id: Ie0b80ee9ddbcccaf9fd4f5d28d80fcd080b0ed40
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/8631
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras')
0 files changed, 0 insertions, 0 deletions