Using ?: here would allow negative values. We could use a proper ternary here to make it appear shorter, but the layout actually mirrors the original method in message_parser::bbcode_size()