summaryrefslogtreecommitdiff
blob: 8753d62ec6c1ddf14981ab3e21f16d1aaa3422d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
https://lists.gnu.org/archive/html/bug-bash/2017-12/msg00025.html
https://bugs.gentoo.org/644720

--- bash-4.4/jobs.c
+++ bash-4.4/jobs.c
@@ -750,7 +750,7 @@
   else
     nsize = bgpids.nalloc;
 
-  while (nsize < js.c_childmax)
+  while (nsize < (ps_index_t)js.c_childmax)
     nsize *= 2;
 
   if (bgpids.nalloc < js.c_childmax)