Skip to content
Snippets Groups Projects
Commit 095d3970 authored by Damien George's avatar Damien George
Browse files

py/objdeque: Fix sign extension bug when computing len of deque object.

For cases where size_t is smaller than mp_int_t (eg nan-boxing builds) the
difference between two size_t's is not sign extended into mp_int_t and so
the result is never negative.  This patch fixes this bug by using ssize_t
for the type of the result.
parent b208aa18
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment