chiark / gitweb /
Disallow sizes with increasing unit size
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 2 Mar 2014 18:28:05 +0000 (13:28 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 2 Mar 2014 18:59:02 +0000 (13:59 -0500)
commit840292befd6ad78e018f5ea16bec80e83d910071
treed98d75d5f2e8d9bfa7ceba880ebef23056ee51ef
parent9480794b277b5ce33e467578ed669996df576bb9
Disallow sizes with increasing unit size

Things like 3B4T, 4B50B, 400 100 (meaning 4*1024**4+3, 54, and 500,
respectively) are now disallowed. It is necessary to say 4T3B, 54B,
500 instead. I think this was confusing and error prone.

As a special form, 400B 100 is allowed, i.e. "B" suffix is treated
as different from "", although they mean the same thing.
src/shared/util.c
src/test/test-util.c