From ce234fc7a7cb2f216401b559e03d239ae515be43 Mon Sep 17 00:00:00 2001 From: vurtun Date: Mon, 15 Aug 2016 11:50:40 +0200 Subject: [PATCH] Removed redundant code --- nuklear.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nuklear.h b/nuklear.h index e7ebeb06..c5989e8a 100644 --- a/nuklear.h +++ b/nuklear.h @@ -199,6 +199,7 @@ LICENSE: publish and distribute this file as you see fit. CHANGELOG: + - 2016/08/15 (1.094)- Removed redundant code - 2016/08/15 (1.094)- Fixed negative numbers in `nk_strtoi` and remove unused variable - 2016/08/15 (1.093)- Fixed `NK_WINDOW_BACKGROUND` flag behavior to select a background window only as selected by hovering and not by clicking. @@ -3077,7 +3078,7 @@ nk_strtoi(const char *str, char **endptr) if (!str) return 0; /* skip whitespace */ - while (*p && *p == ' ') p++; + while (*p == ' ') p++; if (*p == '-') { neg = -1; p++; @@ -3104,7 +3105,7 @@ nk_strtod(const char *str, char **endptr) if (!str) return 0; /* skip whitespace */ - while (*p && *p == ' ') p++; + while (*p == ' ') p++; if (*p == '-') { neg = -1.0; p++;