mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-13 01:36:21 +00:00
Fix a couple of warnings
- Conversion warning on clang: 'long' to 'size_t' - Unused variable warning on MSVC
This commit is contained in:
@@ -139,7 +139,7 @@ protected:
|
||||
const T *it = ptr;
|
||||
while (*it++ != (T) 0)
|
||||
;
|
||||
return it - ptr;
|
||||
return static_cast<size_t>(it - ptr);
|
||||
}
|
||||
|
||||
const std::type_info **m_types = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user