diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in index 615548f12b2..7cbcbf5ab02 100755 --- a/ovsdb/ovsdb-idlc.in +++ b/ovsdb/ovsdb-idlc.in @@ -358,7 +358,7 @@ static void print(" %s" % type.value.initCDefault(valueVar, type.n_min == 0)) print(" }") else: - if type.n_max != sys.maxint: + if type.n_max != sys.maxsize: print(" size_t n = MIN(%d, datum->n);" % type.n_max) nMax = "n" else: diff --git a/python/build/nroff.py b/python/build/nroff.py index c23837f4399..401f6992af9 100644 --- a/python/build/nroff.py +++ b/python/build/nroff.py @@ -148,6 +148,8 @@ def fatal(msg): def put_text(text, x, y, s): + x = int(x) + y = int(y) extend = x + len(s) - len(text[y]) if extend > 0: text[y] += ' ' * extend