From c345633d80144ed99dfdcef7a8690fb666da665a Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 8 Mar 2019 01:01:42 -0500 Subject: [PATCH] Fix build error Close #1182 --- native/jni/utils/include/utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/native/jni/utils/include/utils.h b/native/jni/utils/include/utils.h index 808a8edf9..a66a3ec58 100644 --- a/native/jni/utils/include/utils.h +++ b/native/jni/utils/include/utils.h @@ -204,10 +204,10 @@ void mmap_rw(const char *filename, B &buf, L &sz) { // misc.cpp +static inline int parse_int(char *s) { return parse_int((const char *) s); } + template -int parse_int(S __s) { - return parse_int(__s.data()); -} +int parse_int(S __s) { return parse_int(__s.data()); } int new_daemon_thread(void *(*start_routine) (void *), void *arg = nullptr, const pthread_attr_t *attr = nullptr);