Closed dimkr closed 1 year ago
That d <= 0 indicates that this function is supposed to return 0 and not 1 when the input is something like a ). However, d is unsigned, so unsigned d = 0 - 1 = 0xffffffff and IsBalanced() returns 1.
d <= 0
a )
d
unsigned d = 0 - 1 = 0xffffffff
That
d <= 0
indicates that this function is supposed to return 0 and not 1 when the input is something likea )
. However,d
is unsigned, sounsigned d = 0 - 1 = 0xffffffff
and IsBalanced() returns 1.