summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'm_option.c')
-rw-r--r--m_option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/m_option.c b/m_option.c
index e1b2ecdc88..80dc4c0e9c 100644
--- a/m_option.c
+++ b/m_option.c
@@ -137,16 +137,16 @@ const m_option_type_t m_option_type_flag = {
// Integer
static int parse_int(const m_option_t* opt,const char *name, char *param, void* dst, int src) {
- long tmp_int;
+ long long tmp_int;
char *endptr;
src = 0;
if (param == NULL)
return M_OPT_MISSING_PARAM;
- tmp_int = strtol(param, &endptr, 10);
+ tmp_int = strtoll(param, &endptr, 10);
if (*endptr)
- tmp_int = strtol(param, &endptr, 0);
+ tmp_int = strtoll(param, &endptr, 0);
if (*endptr) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR, "The %s option must be an integer: %s\n",name, param);
return M_OPT_INVALID;