Merge pull request #2396 from tlei995/util

一个代码规范检测的小问题
This commit is contained in:
Golden Looly 2022-06-20 18:52:28 +08:00 committed by GitHub
commit 7e2eda7614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,8 +61,9 @@ public class LunarInfo {
public static int yearDays(int y) {
int i, sum = 348;
for (i = 0x8000; i > 0x8; i >>= 1) {
if ((getCode(y) & i) != 0)
if ((getCode(y) & i) != 0) {
sum += 1;
}
}
return (sum + leapDays(y));
}