diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2014-05-01 00:17:23 +0100 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2014-05-12 02:24:07 +0100 |
commit | 7e5a915e685acfb146b4b08e65d55727d98fc85c (patch) | |
tree | 24bcef2e51538b99069150b1872af992001039ea /libass/ass_utils.c | |
parent | 00ffbd4e319605d17ecff4941394cac64e327786 (diff) | |
download | libass-7e5a915e685acfb146b4b08e65d55727d98fc85c.tar.bz2 libass-7e5a915e685acfb146b4b08e65d55727d98fc85c.tar.xz |
mystrtoll: don't truncate to int
Diffstat (limited to 'libass/ass_utils.c')
-rw-r--r-- | libass/ass_utils.c | 2 |
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 |