diff options
| author | Greg Hackmann <ghackmann@google.com> | 2015-04-02 20:23:22 -0700 |
|---|---|---|
| committer | Greg Hackmann <ghackmann@google.com> | 2015-04-02 20:31:17 -0700 |
| commit | 1fce4f9c898d8053f4721e0f6ed85c9d07589f24 (patch) | |
| tree | d7f5619e721b042af3fdc2c39cdf4c8e144b3668 /tools/aapt2 | |
| parent | f8515ea431e4171bce058944f05edd03497ad07b (diff) | |
| download | frameworks_base-1fce4f9c898d8053f4721e0f6ed85c9d07589f24.zip frameworks_base-1fce4f9c898d8053f4721e0f6ed85c9d07589f24.tar.gz frameworks_base-1fce4f9c898d8053f4721e0f6ed85c9d07589f24.tar.bz2 | |
aapt2: fix definition of G in Util.h
Change-Id: Icbefa425cf543f130deabab9e2e2e6c13ab672d3
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'tools/aapt2')
| -rw-r--r-- | tools/aapt2/Util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt2/Util.h b/tools/aapt2/Util.h index 4c5249b..2de9568 100644 --- a/tools/aapt2/Util.h +++ b/tools/aapt2/Util.h @@ -90,7 +90,7 @@ inline ::std::function<::std::ostream&(::std::ostream&)> formatSize(size_t size) return [size](::std::ostream& out) -> ::std::ostream& { constexpr size_t K = 1024; constexpr size_t M = K * K; - constexpr size_t G = M * M; + constexpr size_t G = M * K; if (size < K) { out << size << "B"; } else if (size < M) { |
