Fixes unsigned/signed comparision in storage_type