10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-30 16:15:41 +01:00

Better re-allocation rules

This commit is contained in:
Anthony Scemama 2015-04-07 19:45:30 +02:00
parent c071226c1d
commit 66c2934d6d

View File

@ -110,9 +110,9 @@ def dimsize(x):
if b0.replace('-','').isdigit():
size = "%s - (%d)"%(b1,int(b0)-1)
elif b1.replace('-','').isdigit():
size = "%d - %s"%(int(b1)+1,b0)
size = "%d - (%s)"%(int(b1)+1,b0)
else:
size = "%s - %s + 1"%(b1,b0)
size = "%s - (%s) + 1"%(b1,b0)
return size
def put_info(text,filename):