On 10/6/20 2:18 PM, Jakub Jelinek wrote:
On Tue, Oct 06, 2020 at 02:09:42PM -0400, Andrew MacLeod wrote:
+  size_t nbytes = sizeof (tree) * 2 * num_pairs;
+
+  // Allocate the irnge and  required memory for the vector
+  void *r = (irange *) obstack_alloc (&m_obstack, sizeof (irange));
Then either
   void *r = (void *) obstack_alloc (&m_obstack, sizeof (irange));
or even better
   void *r = obstack_alloc (&m_obstack, sizeof (irange));


Id already noticed that and went with the latter


Reply via email to