diff options
| author | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-05-08 20:52:32 +0000 |
|---|---|---|
| committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-05-08 20:52:32 +0000 |
| commit | 1a27e731a6a6a04fee24f17ffdc5d8f5e998fd2c (patch) | |
| tree | 9352cfa0b0f78d0bc985cf235d5003fbe3431221 /gcc/cp/inc/cxxabi.h | |
| parent | 93f69683ae30eda10b826d587f19dceee290826e (diff) | |
| download | gcc-1a27e731a6a6a04fee24f17ffdc5d8f5e998fd2c.zip gcc-1a27e731a6a6a04fee24f17ffdc5d8f5e998fd2c.tar.gz gcc-1a27e731a6a6a04fee24f17ffdc5d8f5e998fd2c.tar.bz2 | |
tinfo.cc (__dynamic_cast): Use a reinterpret_cast.
* tinfo.cc (__dynamic_cast): Use a reinterpret_cast. Fix
offsetof expansion.
* inc/cxxabi.h: Fix typos in comment.
(__base_class_info::__offset): Use a static_cast.
From-SVN: r33773
Diffstat (limited to 'gcc/cp/inc/cxxabi.h')
| -rw-r--r-- | gcc/cp/inc/cxxabi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/inc/cxxabi.h b/gcc/cp/inc/cxxabi.h index 9bda484..55b01b7 100644 --- a/gcc/cp/inc/cxxabi.h +++ b/gcc/cp/inc/cxxabi.h @@ -49,11 +49,11 @@ #ifdef __cplusplus -// We use the compiler builtins __SIZE__TYPE__ and __PTRDIFF_TYPE__ instead of +// We use the compiler builtins __SIZE_TYPE__ and __PTRDIFF_TYPE__ instead of // std::size_t and std::ptrdiff_t respectively. This makes us independant of // the conformance level of <cstddef> and whether -fhonor-std was supplied. // <cstddef> is not currently available during compiler building anyway. -// including <stddef.h> would be wrong, as that would rudely place size_t in +// Including <stddef.h> would be wrong, as that would rudely place size_t in // the global namespace. #include <typeinfo> @@ -215,7 +215,7 @@ public: { // This shift, being of a signed type, is implementation defined. GCC // implements such shifts as arithmetic, which is what we want. - return __PTRDIFF_TYPE__ (vmi_offset_flags) >> offset_shift; + return static_cast<__PTRDIFF_TYPE__> (vmi_offset_flags) >> offset_shift; } }; |
