Re: [PATCH] score: Fix undefined behaviour

2016-08-17 Thread Gedare Bloom
Thanks. On Wed, Aug 17, 2016 at 3:15 AM, Sebastian Huber wrote: > Cast POSIX error codes to unsigned int to avoid undefined behaviour in > case of PTHREAD_BARRIER_SERIAL_THREAD which is -1. > --- > cpukit/score/include/rtems/score/status.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] score: Fix undefined behaviour

2016-08-17 Thread Sebastian Huber
Cast POSIX error codes to unsigned int to avoid undefined behaviour in case of PTHREAD_BARRIER_SERIAL_THREAD which is -1. --- cpukit/score/include/rtems/score/status.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/include/rtems/score/status.h b/cpukit/score/incl