Skip to content

Commit

Permalink
Fix version div (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
w41ter committed Jan 9, 2025
1 parent 12d6ec9 commit e8c56cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regression-test/common/helper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ class Helper {
def version = String.format("%d%02d%02d", major, minor, patch).toLong()
for (long expect : versions) {
logger.info("current version ${version}, expect version ${expect}")
def expect_version_set = expect / 100
def got_version_set = version / 100
def expect_version_set = expect.intdiv(100)
def got_version_set = version.intdiv(100)
if (expect_version_set == got_version_set && version < expect) {
return false
}
Expand Down

0 comments on commit e8c56cf

Please sign in to comment.