summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2023-04-27 10:31:50 +0200
committerSergei Golubchik <serg@mariadb.org>2023-04-27 15:49:20 +0200
commitf21664414da8c4cf26daf5cad012dc0aca028602 (patch)
tree9b714eca09475ad25927f984366d16a3378ccc8e
parenta959c22e7fbbac9c19cc9e1dfb18284bf7c67046 (diff)
downloadmariadb-git-f21664414da8c4cf26daf5cad012dc0aca028602.tar.gz
MDEV-31129 build failure with RocksDB, incompatible pointer to integer conversion
FreeBSD 13.2
-rw-r--r--storage/rocksdb/ut0counter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/rocksdb/ut0counter.h b/storage/rocksdb/ut0counter.h
index 3a7ee85d01c..99134ebd3f4 100644
--- a/storage/rocksdb/ut0counter.h
+++ b/storage/rocksdb/ut0counter.h
@@ -61,7 +61,7 @@ struct get_sched_indexer_t : public generic_indexer_t<Type, N> {
size_t cpu = sched_getcpu();
if (cpu == (size_t) -1) {
- cpu = get_curr_thread_id();
+ cpu = (size_t) get_curr_thread_id();
}
return(cpu);