From c0c56351642ec04bea1f596464fdcc2630295e94 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 26 Apr 2010 00:50:15 +0000 Subject: 2010-04-25 Joel Sherrill * libmisc/stringto/stringto_template.h: Remove warning. --- cpukit/libmisc/stringto/stringto_template.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpukit/libmisc/stringto') diff --git a/cpukit/libmisc/stringto/stringto_template.h b/cpukit/libmisc/stringto/stringto_template.h index 2622444c40..6bc61c9c04 100644 --- a/cpukit/libmisc/stringto/stringto_template.h +++ b/cpukit/libmisc/stringto/stringto_template.h @@ -127,7 +127,11 @@ rtems_status_code STRING_TO_NAME ( return RTEMS_INVALID_NUMBER; #endif - *n = (STRING_TO_TYPE) result; + #if defined(STRING_TO_POINTER) + *n = (STRING_TO_TYPE) (uintptr_t)result; + #else + *n = (STRING_TO_TYPE) result; + #endif return RTEMS_SUCCESSFUL; } -- cgit v1.2.3