From bf8c95ecd61ef91a44158e0ddf47a231bfea47ba Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 27 Sep 2014 01:41:35 +0200 Subject: [PATCH] Remove two casts Signed-off-by: Sebastian Ramacher --- config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index d7b7ef7..d298ddc 100644 --- a/config.c +++ b/config.c @@ -31,10 +31,12 @@ cb_jumplist_change(girara_session_t* session, const char* name, g_return_if_fail(name != NULL); zathura_t* zathura = session->global.data; - if (*(int *)value < 0) { + const int* ivalue = value; + + if (*ivalue < 0) { zathura->jumplist.max_size = 0; } else { - zathura->jumplist.max_size = *(int *)value; + zathura->jumplist.max_size = *ivalue; } if (zathura->jumplist.list != NULL && zathura->jumplist.size != 0) {