From cbc8c0f2c57907f81282fbfa6f82de0158332f5e Mon Sep 17 00:00:00 2001 From: jistone Date: Wed, 3 May 2006 23:50:48 +0000 Subject: 2006-05-03 Josh Stone * loc2c-runtime.h (deref_string): resolved gcc "warning: assignment makes integer from pointer without a cast" when using a pointer as the source address. --- runtime/loc2c-runtime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/loc2c-runtime.h') 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; \ -- cgit