if we use a negative value here we can also just do this:

```
if (output.getVersion().before(Version.V_1_1_0)) {
  b = Math.max(0, b);
}
```