Merge pull request #55 from heinrich5991/pr_clang

Fix build in clang 11.1.0 by adding #include
This commit is contained in:
Duncan Ogilvie 2021-05-01 20:29:30 +02:00 committed by GitHub
commit 25861ca20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@
//
#pragma once
#include "formatting.hpp"
#include <cmath>
// Trivial types with useful explict formatting wrappers.
//
@ -110,7 +111,7 @@ namespace vtil::format
//
for ( auto [abbrv, i] : backwards( zip( unit_abbrv, iindices ) ) )
{
double limit = pow( 1024.0, i );
double limit = std::pow( 1024.0, i );
// If value is larger than the unit given or if we're at the last unit:
//