mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 15:56:00 +01:00
Remove two casts
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
9a403458fe
commit
bf8c95ecd6
1 changed files with 4 additions and 2 deletions
6
config.c
6
config.c
|
@ -31,10 +31,12 @@ cb_jumplist_change(girara_session_t* session, const char* name,
|
||||||
g_return_if_fail(name != NULL);
|
g_return_if_fail(name != NULL);
|
||||||
zathura_t* zathura = session->global.data;
|
zathura_t* zathura = session->global.data;
|
||||||
|
|
||||||
if (*(int *)value < 0) {
|
const int* ivalue = value;
|
||||||
|
|
||||||
|
if (*ivalue < 0) {
|
||||||
zathura->jumplist.max_size = 0;
|
zathura->jumplist.max_size = 0;
|
||||||
} else {
|
} else {
|
||||||
zathura->jumplist.max_size = *(int *)value;
|
zathura->jumplist.max_size = *ivalue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zathura->jumplist.list != NULL && zathura->jumplist.size != 0) {
|
if (zathura->jumplist.list != NULL && zathura->jumplist.size != 0) {
|
||||||
|
|
Loading…
Reference in a new issue