From 13735955f39b3b304c37d2b2840663c131262c18 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 8 Oct 2014 12:43:28 -0700 Subject: stdint types all the way! Change-Id: I4e4ef3a2002fc59ebd9097087f150eaf3f2a7e08 --- compiler/utils/assembler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/utils/assembler.cc') diff --git a/compiler/utils/assembler.cc b/compiler/utils/assembler.cc index e3045e1a7b..8a1289dc17 100644 --- a/compiler/utils/assembler.cc +++ b/compiler/utils/assembler.cc @@ -30,8 +30,8 @@ namespace art { -static byte* NewContents(size_t capacity) { - return new byte[capacity]; +static uint8_t* NewContents(size_t capacity) { + return new uint8_t[capacity]; } @@ -85,7 +85,7 @@ void AssemblerBuffer::ExtendCapacity() { size_t new_capacity = std::min(old_capacity * 2, old_capacity + 1 * MB); // Allocate the new data area and copy contents of the old one to it. - byte* new_contents = NewContents(new_capacity); + uint8_t* new_contents = NewContents(new_capacity); memmove(reinterpret_cast(new_contents), reinterpret_cast(contents_), old_size); -- cgit v1.2.3-59-g8ed1b