diff --git a/lib/coproc.cpp b/lib/coproc.cpp index 38a4b8cb38..b0d8f1e101 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -169,21 +169,21 @@ int COPROC::parse_opencl(XML_PARSER& xp) { opencl_prop.available = n; continue; } - if (parse_ulonglong(buf, "", opencl_prop.hp_fp_config)) continue; - if (parse_ulonglong(buf, "", opencl_prop.sp_fp_config)) continue; - if (parse_ulonglong(buf, "", opencl_prop.dp_fp_config)) continue; + if (parse_cl_ulong(buf, "", opencl_prop.hp_fp_config)) continue; + if (parse_cl_ulong(buf, "", opencl_prop.sp_fp_config)) continue; + if (parse_cl_ulong(buf, "", opencl_prop.dp_fp_config)) continue; if (parse_int(buf, "", n)) { opencl_prop.little_endian = n; continue; } - if (parse_ulonglong(buf, "", opencl_prop.exec_capab)) continue; + if (parse_cl_ulong(buf, "", opencl_prop.exec_capab)) continue; if (parse_str(buf, "", opencl_prop.extensions, sizeof(opencl_prop.extensions))) { continue; } - if (parse_ulonglong(buf, "", opencl_prop.global_RAM)) continue; - if (parse_ulonglong(buf, "", opencl_prop.local_RAM)) continue; + if (parse_cl_ulong(buf, "", opencl_prop.global_RAM)) continue; + if (parse_cl_ulong(buf, "", opencl_prop.local_RAM)) continue; if (parse_int(buf, "", n)) { opencl_prop.max_clock_freq = n; continue; diff --git a/lib/parse.h b/lib/parse.h index 178a062c95..49c86fb1d1 100644 --- a/lib/parse.h +++ b/lib/parse.h @@ -136,7 +136,7 @@ inline bool parse_ulong(const char* buf, const char* tag, unsigned long& x) { // Same, for unsigned long long // -inline bool parse_ulonglong(const char* buf, const char* tag, cl_ulong& x) { +inline bool parse_cl_ulong(const char* buf, const char* tag, cl_ulong& x) { const char* p = strstr(buf, tag); if (!p) return false; unsigned long long y = strtoull(p+strlen(tag), NULL, 0); // this parses 0xabcd correctly