mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 18:06:56 +02:00
Previously, we returned from the value setter if the specified value was above the max value. This is not required, as the getter clamps the returned value to the max value.
9 lines
390 B
Plaintext
9 lines
390 B
Plaintext
value attribute initial value: 0
|
|
max attribute initial value: 1
|
|
value attribute after setting value attribute to -1: 0
|
|
max attribute after setting max attribute to -1: 1
|
|
value attribute after setting value attribute to 50: 1
|
|
value attribute after setting max attribute to 100: 50
|
|
max attribute after setting max attribute to 100: 100
|
|
value attribute after setting max attribute to 101: 100
|