diff options
author | wm4 <wm4@nowhere> | 2017-02-25 14:33:27 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-25 14:33:27 +0100 |
commit | 2b6ac866c066a5422dc641c2ba9aa3af495a45c7 (patch) | |
tree | 53a451f8b151422f6d39827ecd55096216df5927 /video | |
parent | eacf4a7d9b81bf13b917739b2ccd6e50a179b570 (diff) | |
download | mpv-2b6ac866c066a5422dc641c2ba9aa3af495a45c7.tar.bz2 mpv-2b6ac866c066a5422dc641c2ba9aa3af495a45c7.tar.xz |
vo_opengl: use misc/ctype.h instead of <ctype.h>
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.)
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/user_shaders.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. */ -#include <ctype.h> #include <assert.h> +#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; |