diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-05 05:17:16 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-05 05:17:16 +0000 |
commit | f457672942b12e4091741142ca2f6894ae3a50ce (patch) | |
tree | 65c1a41f79dbdb5644f68e8c8d029886b1d4761b /gcc/unwind-pe.h | |
parent | 0214f1b484ffc15cf8ab148e691b5ced99ff556b (diff) | |
download | gcc-f457672942b12e4091741142ca2f6894ae3a50ce.tar.gz |
* tsystem.h: Add the prototype of strlen.
* unwind-pe.h (read_encoded_value_with_base): Add an
appropriate cast to handle a case where the pointer size is
smaller than sizeof (int).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73265 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-pe.h')
-rw-r--r-- | gcc/unwind-pe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/unwind-pe.h b/gcc/unwind-pe.h index 224ade33209..e6aebd7a411 100644 --- a/gcc/unwind-pe.h +++ b/gcc/unwind-pe.h @@ -199,7 +199,7 @@ read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base, _Unwind_Internal_Ptr a = (_Unwind_Internal_Ptr) p; a = (a + sizeof (void *) - 1) & - sizeof(void *); result = *(_Unwind_Internal_Ptr *) a; - p = (const unsigned char *) (a + sizeof (void *)); + p = (const unsigned char *) (_Unwind_Internal_Ptr) (a + sizeof (void *)); } else { |