src/miscallenous.cc

changeset 818
748ba8818af8
parent 817
cee9f0ecac66
child 834
3e697ba996e8
equal deleted inserted replaced
817:cee9f0ecac66 818:748ba8818af8
144 144
145 do 145 do
146 { 146 {
147 repeat = false; 147 repeat = false;
148 148
149 for (int x = 0; x < countof (primes); x++) 149 for (int x = 0; x < countof (g_primes); x++)
150 { 150 {
151 int const prime = primes[x]; 151 int const prime = g_primes[x];
152 152
153 if (numer < prime && denom < prime) 153 if (numer < prime && denom < prime)
154 break; 154 break;
155 155
156 if ((numer % prime == 0) && (denom % prime == 0)) 156 if ((numer % prime == 0) && (denom % prime == 0))

mercurial