Wolf480pl on Nostr: nprofile1q…7lu3h my advice for that case would be: Don't assume the bug is in your ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqhpfp9r99v5myyp8tmpmeny345ru2pqnugald5t2pqr7ppxpqc6qs07lu3h (nprofile…lu3h) my advice for that case would be:
Don't assume the bug is in your own code.
If you dive into the library function's code as part of your debugging, you'll either find out that it's not returning what you expected, on purpose (so like RTFM but more fun)
or you find out that it's not returning what you expected, not on purpose (congratz, you found a bug in the library!)
or you find out that it's returning what you expected, but you get sth else (UB? compiler bug? fun times!)
Don't assume the bug is in your own code.
If you dive into the library function's code as part of your debugging, you'll either find out that it's not returning what you expected, on purpose (so like RTFM but more fun)
or you find out that it's not returning what you expected, not on purpose (congratz, you found a bug in the library!)
or you find out that it's returning what you expected, but you get sth else (UB? compiler bug? fun times!)