From 85bca3f2283baa0630b148d5c16612fcbb9f87e6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 20 Aug 2008 17:29:37 +0000 Subject: 2008-08-20 Sebastian Huber * include/rtems/status-checks.h: Fixed integer conversion warning. --- cpukit/include/rtems/status-checks.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/include/rtems/status-checks.h') diff --git a/cpukit/include/rtems/status-checks.h b/cpukit/include/rtems/status-checks.h index f62289fe4d..1face9488e 100644 --- a/cpukit/include/rtems/status-checks.h +++ b/cpukit/include/rtems/status-checks.h @@ -83,7 +83,7 @@ extern "C" { #define CHECK_SCRV( sc, hint ) \ if ((sc) != RTEMS_SUCCESSFUL) { \ SYSLOG_ERROR( "SC = %i: %s\n", sc, hint ); \ - return -(sc); \ + return -((int) (sc)); \ } else { \ DEBUG_PRINT( "Ok: %s\n", hint ); \ } @@ -149,7 +149,7 @@ extern "C" { #define CLEANUP_SCRV( sc, rv, label, hint ) \ if ((sc) != RTEMS_SUCCESSFUL) { \ SYSLOG_ERROR( "SC = %i: %s\n", sc, hint ); \ - rv = -(sc); \ + rv = -((int) (sc)); \ goto label; \ } else { \ DEBUG_PRINT( "Ok: %s\n", hint ); \ -- cgit v1.2.3