util::find() issue fixed#9
Conversation
When linear scanning doesn't find the target element, the control must not go back to the binary search logic. Signed-off-by: Rajdeep Roy Chowdhury <rrajdeeproychowdhury@gmail.com>
|
In this line here, when |
|
Hi, |
Signed-off-by: Rajdeep Roy Chowdhury <rrajdeeproychowdhury@gmail.com>
|
How about: |
|
Returning |
|
Oh yes, sorry the break of the return are just the same: I parsed one parenthesis less :) |
|
Setting |
|
Merged! Thanks. |
util::find() issue fixed
When linear scanning doesn't find the target element, the control must
not go back to the binary search logic.
Signed-off-by: Rajdeep Roy Chowdhury rrajdeeproychowdhury@gmail.com