1
0
зеркало из https://github.com/coolaj86/fizzbuzz.git synced 2024-11-16 17:29:04 +00:00

adjusted safety base-case loop size down to a reasonable limit

Этот коммит содержится в:
AJ ONeal 2010-10-21 01:00:22 -06:00
родитель 57a8b8d5bd
Коммит 6a5f859101

Просмотреть файл

@ -85,7 +85,7 @@ var HotPlate = {};
// 0.000000000000001 is the lowest you can go. If you try zero it will run forever (IEEE floating-point errors?)
repeat = true, // if the base condition has yet to be met
count = 0, // safeguard in case the base-case logic is incorrect
max_count = 10000000000000000;
max_count = 15000;
while (true === repeat && count < max_count) {
variance = 0;