max value calc fix #153

Merged
muellerr merged 3 commits from max-value-fix-v2 into develop 2023-06-20 18:20:01 +02:00
Owner
No description provided.
muellerr added 1 commit 2023-06-19 17:37:26 +02:00
Owner

nice catch @meggert !

Re: Off-Band Discussion with @muellerr: I think index needs to be checked for nullptr (and my younger self needs a stern talking to for writing uint8_t *index = 0 without this check), as the interface presents nullptr as a valid choice.

Regarding checking vector and size, the whole module does not do nullptr/size checks. I am not sure whether to keep it that way or refactor it to checking and returning Returnvalue_t.

I think the idea in the first place was to keep the interface slim, to not bloat math code, which is a debatable argument...

nice catch @meggert ! Re: Off-Band Discussion with @muellerr: I think `index` needs to be checked for `nullptr` (and my younger self needs a stern talking to for writing `uint8_t *index = 0` without this check), as the interface presents `nullptr` as a valid choice. Regarding checking `vector` and `size`, the whole module does not do `nullptr`/size checks. I am not sure whether to keep it that way or refactor it to checking and returning `Returnvalue_t`. I think the idea in the first place was to keep the interface slim, to not bloat math code, which is a debatable argument...
mohr added 1 commit 2023-06-20 11:54:22 +02:00
muellerr added 1 commit 2023-06-20 18:19:21 +02:00
muellerr merged commit 268c2e87c9 into develop 2023-06-20 18:20:01 +02:00
muellerr deleted branch max-value-fix-v2 2023-06-20 18:20:02 +02:00
Sign in to join this conversation.
No description provided.