[Matahari] [PATCH 1/6] core: Change return type to be signed.