diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-26 00:50:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-26 00:50:15 +0000 |
commit | c0c56351642ec04bea1f596464fdcc2630295e94 (patch) | |
tree | 4916f5b920c9595fd4c3317013d8808f164a09af /cpukit/libmisc | |
parent | 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-c0c56351642ec04bea1f596464fdcc2630295e94.tar.bz2 |
2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/stringto/stringto_template.h: Remove warning.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/stringto/stringto_template.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |