From 2b6ac866c066a5422dc641c2ba9aa3af495a45c7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 25 Feb 2017 14:33:27 +0100 Subject: vo_opengl: use misc/ctype.h instead of Locale-independent, and doesn't have the char vs. unsigned char problem. (Although in this case, the code was fine, because bstr.start is unsigned char.) --- video/out/opengl/user_shaders.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/out/opengl/user_shaders.c b/video/out/opengl/user_shaders.c index 112012f04f..7e1e5f4d12 100644 --- a/video/out/opengl/user_shaders.c +++ b/video/out/opengl/user_shaders.c @@ -15,9 +15,9 @@ * License along with mpv. If not, see . */ -#include #include +#include "misc/ctype.h" #include "user_shaders.h" static bool parse_rpn_szexpr(struct bstr line, struct szexp out[MAX_SZEXP_SIZE]) @@ -56,7 +56,7 @@ static bool parse_rpn_szexpr(struct bstr line, struct szexp out[MAX_SZEXP_SIZE]) case '<': exp->tag = SZEXP_OP2; exp->val.op = SZEXP_OP_LT; continue; } - if (isdigit(word.start[0])) { + if (mp_isdigit(word.start[0])) { exp->tag = SZEXP_CONST; if (bstr_sscanf(word, "%f", &exp->val.cval) != 1) return false; -- cgit v1.2.3