Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyImathFixedVArray: argument 1 value exceeds maximum object size #323

Open
hobbes1069 opened this issue May 29, 2023 · 0 comments
Open

PyImathFixedVArray: argument 1 value exceeds maximum object size #323

hobbes1069 opened this issue May 29, 2023 · 0 comments

Comments

@hobbes1069
Copy link
Contributor

I assume this should be pretty easy to address? It's currently a warning but warnings often become errors in newer versions of gcc.

/builddir/build/BUILD/Imath-3.1.8/src/python/PyImath/PyImathFixedVArray.cpp: In member function '__ct_base ':
/builddir/build/BUILD/Imath-3.1.8/src/python/PyImath/PyImathFixedVArray.cpp:101:44: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
  101 |     boost::shared_array<std::vector<T> > a(new std::vector<T>[length]);
      |                                            ^
/usr/include/c++/13/new:128:26: note: in a call to allocation function 'operator new []' declared here
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^
/builddir/build/BUILD/Imath-3.1.8/src/python/PyImath/PyImathFixedVArray.cpp: In member function '__ct_base ':
/builddir/build/BUILD/Imath-3.1.8/src/python/PyImath/PyImathFixedVArray.cpp:117:44: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
  117 |     boost::shared_array<std::vector<T> > a(new std::vector<T>[length]);
      |                                            ^
/usr/include/c++/13/new:128:26: note: in a call to allocation function 'operator new []' declared here
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant