Commits

Anonymous committed e524c0e

#i107166# Use 32 bit for values larger than 32768

Comments (0)

Files changed (1)

extensions/source/update/check/updatecheck.cxx

                     bExtensionsChecked = false;
 
                 // Increase next by 15, 60, .. minutes
-                static const sal_Int16 nRetryInterval[] = { 900, 3600, 14400, 86400 };
+                static const sal_Int32 nRetryInterval[] = { 900, 3600, 14400, 86400 };
                 
-                if( n < sizeof(nRetryInterval) / sizeof(sal_Int16) )
+                if( n < sizeof(nRetryInterval) / sizeof(sal_Int32) )
                     ++n;
                 
                 tv.Seconds = nRetryInterval[n-1];