From 77be48f980f23e415381a98125944b6cbf525f4d Mon Sep 17 00:00:00 2001 From: Tomislav Ivek Date: Sat, 25 Oct 2014 21:38:27 +0200 Subject: Do not assume integer types in global namespace --- cxx11/c++11-test-cstdint.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cxx11') diff --git a/cxx11/c++11-test-cstdint.cpp b/cxx11/c++11-test-cstdint.cpp index be2878f..6ba852f 100644 --- a/cxx11/c++11-test-cstdint.cpp +++ b/cxx11/c++11-test-cstdint.cpp @@ -2,9 +2,9 @@ int main() { bool test = - (sizeof(int8_t) == 1) && - (sizeof(int16_t) == 2) && - (sizeof(int32_t) == 4) && - (sizeof(int64_t) == 8); + (sizeof(std::int8_t) == 1) && + (sizeof(std::int16_t) == 2) && + (sizeof(std::int32_t) == 4) && + (sizeof(std::int64_t) == 8); return test ? 0 : 1; } -- cgit v1.2.3