diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ae4fc8c..9ce41fe4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,11 @@ X.Y.Z Release notes * None. ### Enchancements -* Improve notification performance for objects with no object or list properties. +* Improved notification performance for objects with no object or list properties. ### Bug fixes -* Fix a race condition where closing and immediately reopening a synchronized +* Fixed a compilation error related to object IDs for React Native on Android (#1480). +* Fixed a race condition where closing and immediately reopening a synchronized Realm opened using an admin token user would fail. ### Internal diff --git a/src/js_realm.hpp b/src/js_realm.hpp index 9c226dbc..bfe11141 100644 --- a/src/js_realm.hpp +++ b/src/js_realm.hpp @@ -1013,8 +1013,7 @@ inline sync::ObjectID object_id_from_string(std::string const& string) !std::all_of(low_string.begin(), low_string.end(), isxdigit)) { throw std::invalid_argument("Invalid object ID."); } - - return sync::ObjectID(std::stoull(high_string, nullptr, 16), std::stoull(low_string, nullptr, 16)); + return sync::ObjectID(strtoull(high_string.c_str(), nullptr, 16), strtoull(low_string.c_str(), nullptr, 16)); } } // unnamed namespace