aboutsummaryrefslogtreecommitdiff
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r--src/StringUtils.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index 564f307..656b511 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -210,7 +210,7 @@ namespace QuickMedia {
}
}
- bool to_num(const char *str, size_t size, int &num) {
+ bool to_num(const char *str, size_t size, int64_t &num) {
if(size == 0)
return false;
@@ -233,6 +233,13 @@ namespace QuickMedia {
return true;
}
+ bool to_num(const char *str, size_t size, int &num) {
+ int64_t num_i64 = 0;
+ const bool res = to_num(str, size, num_i64);
+ num = num_i64;
+ return res;
+ }
+
bool to_num_hex(const char *str, size_t size, int &num) {
if(size == 0)
return false;