mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-09-28 18:49:56 +02: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
|
@ -34,7 +34,7 @@ class Depth private constructor(val limit: Int?) : Comparable<Depth> {
|
||||||
*/
|
*/
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun auto(limit: Int): Depth {
|
fun auto(limit: Int): Depth {
|
||||||
return if (limit == 255) {
|
return if (limit >= 255) {
|
||||||
unconstrained()
|
unconstrained()
|
||||||
} else {
|
} else {
|
||||||
limited(limit)
|
limited(limit)
|
||||||
|
|
Loading…
Reference in a new issue