eddelbuettel opened a new pull request, #35626:
URL: https://github.com/apache/arrow/pull/35626

   
   closes #35617
   
   ### Rationale for this change
   
   As described in #35617 the example in docs suffers from a likely 
copy-and-paste error as the `n_buffers` value references the _parent_ rather 
that the two children where this is used. `g++-12` spots this and bemoans that 
assigning to, respectively, `buffers[1]` and then `buffers[1]` and `buffers[2]` 
is out of bounds.
   
   ### What changes are included in this PR?
   
   The example is corrected.
   
   ### Are these changes tested?
   
   Yes, locally.  The warnings under `g++-12` go away.
   
   ### Are there any user-facing changes?
   
   Not in behavior but the documentation is improved.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to