mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Depth: enable comparison with lengths >255 [hack?]
The "infinity and beyond" authentication test performs a comparison against a length > 255. Transforming that length into a "Depth" object for comparison failed without this patch.
This commit is contained in:
parent
39603fa35d
commit
144ebc9c63
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class Depth private constructor(val limit: Int?) : Comparable<Depth> {
|
|||
*/
|
||||
@JvmStatic
|
||||
fun auto(limit: Int): Depth {
|
||||
return if (limit == 255) {
|
||||
return if (limit >= 255) {
|
||||
unconstrained()
|
||||
} else {
|
||||
limited(limit)
|
||||
|
|
Loading…
Reference in a new issue