summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2014-05-01 00:17:23 +0100
committerOleg Oshmyan <chortos@inbox.lv>2014-05-12 02:24:07 +0100
commit7e5a915e685acfb146b4b08e65d55727d98fc85c (patch)
tree24bcef2e51538b99069150b1872af992001039ea
parent00ffbd4e319605d17ecff4941394cac64e327786 (diff)
downloadlibass-7e5a915e685acfb146b4b08e65d55727d98fc85c.tar.bz2
libass-7e5a915e685acfb146b4b08e65d55727d98fc85c.tar.xz
mystrtoll: don't truncate to int
-rw-r--r--libass/ass_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_utils.c b/libass/ass_utils.c
index a3df981..5140506 100644
--- a/libass/ass_utils.c
+++ b/libass/ass_utils.c
@@ -106,7 +106,7 @@ int mystrtoll(char **p, long long *res)
double temp_res;
char *start = *p;
temp_res = ass_strtod(*p, p);
- *res = (int) (temp_res + (temp_res > 0 ? 0.5 : -0.5));
+ *res = (long long) (temp_res + (temp_res > 0 ? 0.5 : -0.5));
if (*p != start)
return 1;
else