Fix "runtime error: shift exponent 32 is too large for 32-bit type 'int'" error 68/213568/2
authorSeungho, Baek <sbsh.baek@samsung.com>
Mon, 9 Sep 2019 01:49:22 +0000 (10:49 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Mon, 9 Sep 2019 23:25:47 +0000 (08:25 +0900)
 - Fix 1 to 1ULL.
 - if ( mSignalMask & (1ULL << (signum-1) ) )

Change-Id: I9c22bf0ea288a23e8d454d23c9ee50abef2dd6ad
Signed-off-by: Seungho, Baek <sbsh.baek@samsung.com>
dali/internal/system/common/abort-handler.cpp

index fa70d22..696570e 100644 (file)
@@ -47,7 +47,7 @@ AbortHandler::~AbortHandler()
   int signum;
   for ( signum = 1; signum < _NSIG; signum++ )
   {
-    if ( mSignalMask & (1 << (signum-1) ) )
+    if ( mSignalMask & (1ULL << (signum-1) ) )
     {
       // set signals back to default handling
       signal( signum, mSignalOldHandlers[signum-1] );
@@ -70,7 +70,7 @@ bool AbortHandler::AbortOnSignal( int signum )
   if ( SIG_ERR != signalHandlerPrevious )
     {
       mSignalOldHandlers[signum-1] = signalHandlerPrevious;
-      mSignalMask |= ( 1 << (signum-1) );
+      mSignalMask |= ( 1ULL << (signum-1) );
       status = true;
     }
   }