修复值月九星数组下标越界的问题。
This commit is contained in:
@@ -1903,8 +1903,11 @@ public class Lunar{
|
||||
}
|
||||
// 寅月起,所以需要-2
|
||||
int monthIndex = monthZhiIndex-2;
|
||||
if(monthIndex<0){
|
||||
monthIndex += 12;
|
||||
}
|
||||
int index = start-monthIndex-1;
|
||||
if(index<0){
|
||||
while(index<0){
|
||||
index += 9;
|
||||
}
|
||||
return new NineStar(index);
|
||||
|
||||
Reference in New Issue
Block a user