Oh, congrats on finding the bug btw. One less thing….
Also, thanks for the transparency/humility. It’s nice to know that accomplished developers are human too.
Do the asserts compile out in release mode? Should a return value be checked instead/also?