Search found 2 matches

by hockeydave
Thu Dec 22, 2022 3:54 pm
Forum: ESP32 Arduino
Topic: Integer Overflow affects abs()
Replies: 2
Views: 1621

Re: Integer Overflow affects abs()

Thank you very much for taking the time to investigate!!!
by hockeydave
Thu Dec 15, 2022 2:42 pm
Forum: ESP32 Arduino
Topic: Integer Overflow affects abs()
Replies: 2
Views: 1621

Integer Overflow affects abs()

There seems to be a problem with a local variable declared as an int32_t that overflows versus a local static variable that overflows with regards to the abs function call as shown below: static uint32_t M_HashGen(const char* s) { const int32_t A_PRIME = 54059; const int32_t B_PRIME = 76963; const i...