Prevent revision number going above 16 bits worth of integer
This commit is contained in:
parent
40d3111dab
commit
73f0cb9816
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ def getGitRevision(gitrootpath, basenumber):
|
|||
print("Command {0} returned: {1}".format(completed.args, completed.returncode))
|
||||
changecount = completed.stdout.decode("utf-8").strip()
|
||||
print("Change count: {0}".format(changecount))
|
||||
adjustedchangecount = (int(changecount) + int(basenumber) % (MAXVERSIONNUMBER + 1))
|
||||
adjustedchangecount = int((int(changecount) + int(basenumber)) % (MAXVERSIONNUMBER + 1))
|
||||
print("Adjusted change count: {0}".format(adjustedchangecount))
|
||||
|
||||
print("Determining current revision info using git command: {0}".format(gitExecutable))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue