mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use i32 for negative values calculation
This commit is contained in:
parent
b3b0892d62
commit
42e91cdb7c
4 changed files with 18 additions and 21 deletions
|
|
@ -40,10 +40,11 @@ impl Default {
|
|||
let response = response.clone();
|
||||
move |_, _| {
|
||||
control.update(match size_limit {
|
||||
Some(limit_value) => Some(
|
||||
limit_value
|
||||
- (base.to_string_partial(UriHideFlags::QUERY).len()
|
||||
+ Uri::escape_string(response.text().as_str(), None, false).len()),
|
||||
Some(limit) => Some(
|
||||
limit as i32
|
||||
- (base.to_string_partial(UriHideFlags::QUERY).len() as i32
|
||||
+ Uri::escape_string(response.text().as_str(), None, false).len()
|
||||
as i32),
|
||||
),
|
||||
None => None,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue