Make path-to-string conversion a little safer · matplotlib/matplotlib@f05ecf9 · GitHub
Skip to content

Commit f05ecf9

Browse files
committed
Make path-to-string conversion a little safer
... by replacing double pointers by fixed-size `std::array`, or a return `tuple`. With gcc (and optimization enabled?), this has no effect on code size, but gives compile-time (and better runtime) checks that there are no out-of-bounds access.
1 parent 5b38f50 commit f05ecf9

2 files changed

Lines changed: 26 additions & 33 deletions

File tree

‎src/_path.h‎

Lines changed: 25 additions & 27 deletions

‎src/_path_wrapper.cpp‎

Lines changed: 1 addition & 6 deletions

0 commit comments

Comments
 (0)