* include/rtems/status-checks.h: Fixed integer conversion warning.
This commit is contained in:
Joel Sherrill
2008-08-20 17:29:37 +00:00
parent 1dab7883a9
commit 85bca3f228
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2008-08-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/rtems/status-checks.h: Fixed integer conversion warning.
2008-08-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Abort if stdbool.h is not c99 compliant.

View File

@@ -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 ); \