-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: overuse of "i" variable in holiday calculations
Windows build was failing due to correctly pointing out I had already changed one "i" to "cycyear" a few commits back, but neglected to change its loop increment statement. Since i was used in other loops in the function, it wasn't causing a direct compilation error. To prevent this from happening again, I removed the i variable from current_holidays() completely and replaced it with two separate "month_ctr" variables which are at least nice semantic names.
- Loading branch information
1 parent
874e48c
commit f074141
Showing
1 changed file
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters