mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
All bit shifting in vtkm::cont::Logging happens in unsigned space
This commit is contained in:
parent
1ba38c59f7
commit
2e93443b10
@ -223,8 +223,8 @@ namespace
|
||||
/// of the stringified number.
|
||||
inline VTKM_CONT std::string HumanSize(vtkm::UInt64 bytes, int prec = 2)
|
||||
{
|
||||
std::int64_t current = bytes;
|
||||
std::int64_t previous = bytes;
|
||||
vtkm::UInt64 current = bytes;
|
||||
vtkm::UInt64 previous = bytes;
|
||||
|
||||
constexpr const char* units[] = { "bytes", "KiB", "MiB", "GiB", "TiB", "PiB" };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user