diff options
author | jistone <jistone> | 2006-05-03 23:50:48 +0000 |
---|---|---|
committer | jistone <jistone> | 2006-05-03 23:50:48 +0000 |
commit | cbc8c0f2c57907f81282fbfa6f82de0158332f5e (patch) | |
tree | d4f58a9b2eca40ae12609a657f544cd9a733f5fe /runtime/loc2c-runtime.h | |
parent | e7cc2081ba76284010d4d569527237da0898b5c9 (diff) | |
download | systemtap-steved-cbc8c0f2c57907f81282fbfa6f82de0158332f5e.tar.gz systemtap-steved-cbc8c0f2c57907f81282fbfa6f82de0158332f5e.tar.xz systemtap-steved-cbc8c0f2c57907f81282fbfa6f82de0158332f5e.zip |
2006-05-03 Josh Stone <joshua.i.stone@intel.com>
* loc2c-runtime.h (deref_string): resolved gcc "warning:
assignment makes integer from pointer without a cast" when
using a pointer as the source address.
Diffstat (limited to 'runtime/loc2c-runtime.h')
-rw-r--r-- | runtime/loc2c-runtime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/loc2c-runtime.h b/runtime/loc2c-runtime.h index af14f395..fb76bbfc 100644 --- a/runtime/loc2c-runtime.h +++ b/runtime/loc2c-runtime.h @@ -1,6 +1,6 @@ /* target operations * Copyright (C) 2005 Red Hat Inc. - * Copyright (C) 2005 Intel Corporation. + * Copyright (C) 2005,2006 Intel Corporation. * * This file is part of systemtap, and is free software. You can * redistribute it and/or modify it under the terms of the GNU General @@ -241,7 +241,7 @@ size_t _len; \ unsigned char _c; \ char *_d = (dst); \ - for (_len = (maxbytes), _addr = (addr); \ + for (_len = (maxbytes), _addr = (uintptr_t)(addr); \ _len > 1 && (_c = deref (1, _addr)) != '\0'; \ --_len, ++_addr) \ *_d++ = _c; \ |