diff --git a/src/bench/prevector.cpp b/src/bench/prevector.cpp --- a/src/bench/prevector.cpp +++ b/src/bench/prevector.cpp @@ -14,7 +14,7 @@ static_assert(!IS_TRIVIALLY_CONSTRUCTIBLE::value, "expected nontrivial_t to not be trivially constructible"); -typedef unsigned char trivial_t; +typedef uint8_t trivial_t; static_assert(IS_TRIVIALLY_CONSTRUCTIBLE::value, "expected trivial_t to be trivially constructible"); diff --git a/src/prevector.h b/src/prevector.h --- a/src/prevector.h +++ b/src/prevector.h @@ -301,7 +301,7 @@ void fill(T *dst, ptrdiff_t count) { if (IS_TRIVIALLY_CONSTRUCTIBLE::value) { - // The most common use of prevector is where T=unsigned char. For + // The most common use of prevector is where T=uint8_t. For // trivially constructible types, we can use memset() to avoid // looping. ::memset(dst, 0, count * sizeof(T));