summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-07 15:48:49 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-07 15:48:49 -0400
commit37594f7b2ac9fb3c17d6a46cc193b19f477cb422 (patch)
treeab9cccb41e226f8caf91cfba842074fe28291073
parent0dd30263c0f87813a0a09c7fbfe8a6e59e9cd22d (diff)
downloadvecmathlib-37594f7b2ac9fb3c17d6a46cc193b19f477cb422.zip
vecmathlib-37594f7b2ac9fb3c17d6a46cc193b19f477cb422.tar.gz
Use stdint.h's types instead of guessing types' sizes
-rw-r--r--floattypes.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/floattypes.h b/floattypes.h
index 9c43a31..3b3cf7e 100644
--- a/floattypes.h
+++ b/floattypes.h
@@ -32,14 +32,14 @@
// Make some type definitions from stdint.h available in std
namespace std {
- typedef unsigned char uint8_t;
- typedef signed char int8_t;
- typedef unsigned short uint16_t;
- typedef short int16_t;
- typedef unsigned int uint32_t;
- typedef int int32_t;
- typedef unsigned long long uint64_t;
- typedef long long int64_t;
+ typedef ::uint8_t uint8_t;
+ typedef ::int8_t int8_t;
+ typedef ::uint16_t uint16_t;
+ typedef ::int16_t int16_t;
+ typedef ::uint32_t uint32_t;
+ typedef ::int32_t int32_t;
+ typedef ::uint64_t uint64_t;
+ typedef ::int64_t int64_t;
}
OpenPOWER on IntegriCloud