Skip to content

Commit

Permalink
Return proper Daf Yomi Yerushalmi
Browse files Browse the repository at this point in the history
Thanks @elazarrosenthal
Closes #207
  • Loading branch information
KosherJava authored May 3, 2023
1 parent 5ad996e commit 5162a97
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/*
* Zmanim Java API
* Copyright (C) 2017 - 2021 Eliyahu Hershfeld
* Copyright (C) 2017 - 2023 Eliyahu Hershfeld
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA,
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA,
* or connect to: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
*/
package com.kosherjava.zmanim.hebrewcalendar;
Expand All @@ -24,7 +24,7 @@
* "https://en.wikipedia.org/wiki/Daf_Yomi">Daf Yomi</a> page ({@link Daf}) for the a given date.
*
* @author &copy; elihaidv
* @author &copy; Eliyahu Hershfeld 2017 - 2021
* @author &copy; Eliyahu Hershfeld 2017 - 2023
*/
public class YerushalmiYomiCalculator {

Expand Down Expand Up @@ -97,7 +97,7 @@ public static Daf getDafYomiYerushalmi(JewishCalendar calendar) {
// Finally find the daf.
for (int j = 0; j < BLATT_PER_MASSECTA.length; j++) {

if (total <= BLATT_PER_MASSECTA[j]) {
if (total < BLATT_PER_MASSECTA[j]) {
dafYomi = new Daf(masechta, total + 1);
break;
}
Expand Down

0 comments on commit 5162a97

Please sign in to comment.