refactor(api): add missing cast #31960

This commit is contained in:
glepnir
2025-01-27 08:02:33 +08:00
committed by GitHub
parent 1759b7844a
commit c7d4a77ff9

View File

@ -62,7 +62,7 @@ Integer nvim_create_namespace(String name)
{
handle_T id = map_get(String, int)(&namespace_ids, name);
if (id > 0) {
return id;
return (Integer)id;
}
id = next_namespace_id++;
if (name.size > 0) {