Properly handle SINT_MIN in small_to_big()
Properly handle SINT_MIN in small_to_big()

As there is no overflow for signed integers, -SINT_MIN is undefined behaviour
and the cast to unsigned needs to happen before negation. SINT_MIN denotes the
minimum value that can be stored in the Sint type.

beam/big.c:1512:6: runtime error: negation of -9223372036854775808 cannot be represented in type 'Sint' (aka 'long'); cast to an unsigned type to negate this value to itself

basho/otp,jinshana/otp,derek121/otp,bjorng/otp,stolen/otp,Teino1978-Corp/otp,msantos/otp,RJ/otp,riverrun/otp,sitexa/otp,bsmr-erlang/otp,marquisthunder/otp,legoscia/otp,massemanet/otp,tuncer/otp,beni55/otp,massemanet/otp,psyeugenic/otp,dumbbell/otp,sitexa/otp,lucafavatella/otp,getong/otp,neeraj9/otp,riverrun/otp,rlipscombe/otp,cnbin/otp,bugs-erlang-org/otp,basho/otp,hairyhum/otp,msantos/otp,marquisthunder/otp,erlang/otp,basho/otp,fenollp/otp,hairyhum/otp,sammoth-wazoku/otp,cobusc/otp,electricimp/otp,basho/otp,isvilen/otp,mujiatong/otp,jj1bdx/otp,vinoski/otp,sammoth-wazoku/otp,dumbbell/otp,Teino1978-Corp/erlang-otp,platinumthinker/otp,enikki/otp,getong/otp,jemsbhai/otp,RGafiyatullin/otp,lianghaivv/otp,sammoth-wazoku/otp,paulcager/otp,jj1bdx/otp,mikpe/otp,jamesruan/otp,legoscia/otp,RJ/otp,theom/otp,awetzel/otp,hairyhum/otp,legoscia/otp,erlang/otp,electricimp/otp,g-andrade/otp,goertzenator/otp,mujiatong/otp,falkevik/otp,johanclaesson/otp,mujiatong/otp,lrascao/otp,NOMORECOFFEE/otp,ader1990/otp,lhslll/otp,paulcager/otp,RoadRunnr/otp,massemanet/otp,riverrun/otp,aboroska/otp,falkevik/otp,klarna/otp,sitexa/otp,Teino1978-Corp/erlang-otp,massemanet/otp,isvilen/otp,release-project/otp,bugs-erlang-org/otp,sitexa/otp,fenollp/otp,jamesruan/otp,weisslj/otp,massemanet/otp,VincentHHL/otp,hairyhum/otp,RichMorin/otp,gjaldon/otp,RoadRunnr/otp,ferd/otp,getong/otp,entropiae/otp,vic/otp,RichMorin/otp,c-rack/otp,yangchengjian/otp,cobusc/otp,enikki/otp,vinoski/otp,goertzenator/otp,RoadRunnr/otp,benoitc/otp-1,RJ/otp,ader1990/otp,cobusc/otp,bjorng/otp,enikki/otp,entropiae/otp,vic/otp,msantos/otp,VincentHHL/otp,Teino1978-Corp/otp,sdebnath/otp,krishnakumar4a4/otp,jemsbhai/otp,gjaldon/otp,ferd/otp,basho/otp,sammoth-wazoku/otp,awetzel/otp,goertzenator/otp,weisslj/otp,lantti/otp,emacsmirror/erlang,bugs-erlang-org/otp,Teino1978-Corp/otp,g-andrade/otp,krishnakumar4a4/otp,bjorng/otp,emacsmirror/erlang,bugs-erlang-org/otp,paladim/otp,msantos/otp,schlagert/otp,getong/otp,tuncer/otp,marquisthunder/otp,RoadRunnr/otp,dumbbell/otp,kvakvs/otp,saleyn/otp,ader1990/otp,fenollp/otp,palas/otp,weisslj/otp,matwey/otp,riverrun/otp,klarna/otp,lemenkov/otp,isvilen/otp,benoitc/otp-1,neeraj9/otp,emacsmirror/erlang,GinjaNinja32/otp,getong/otp,saleyn/otp,lemenkov/otp,ahmedshafeeq/otp,aboroska/otp,GinjaNinja32/otp,lhslll/otp,RJ/otp,psyeugenic/otp,msantos/otp,matwey/otp,neeraj9/otp,dgud/otp,bsmr-erlang/otp,dumbbell/otp,emacsmirror/erlang,jj1bdx/otp,ahmedshafeeq/otp,cnbin/otp,bsmr-erlang/otp,legoscia/otp,dgud/otp,vladdu/otp,RoadRunnr/otp,jj1bdx/otp,ahmedshafeeq/otp,hairyhum/otp,cnbin/otp,gjaldon/otp,bjorng/otp,johanclaesson/otp,erlang/otp,fenollp/otp,psyeugenic/otp,RGafiyatullin/otp,ader1990/otp,dgud/otp,potatosalad/otp,bernardd/otp,NOMORECOFFEE/otp,RichMorin/otp,Teino1978-Corp/otp,paulcager/otp,platinumthinker/otp,beni55/otp,emacsmirror/erlang,entropiae/otp,mikpe/otp,ferd/otp,hairyhum/otp,theom/otp,aboroska/otp,basho/otp,potatosalad/otp,rlipscombe/otp,cobusc/otp,bjorng/otp,platinumthinker/otp,erlang/otp,isvilen/otp,lrascao/otp,sdebnath/otp,gjaldon/otp,paladim/otp,massemanet/otp,GinjaNinja32/otp,paulcager/otp,basho/otp,NOMORECOFFEE/otp,riverrun/otp,klarna/otp,Teino1978-Corp/erlang-otp,Teino1978-Corp/erlang-otp,bugs-erlang-org/otp,yangchengjian/otp,c-rack/otp,johanclaesson/otp,fenollp/otp,cnbin/otp,electricimp/otp,lianghaivv/otp,awetzel/otp,palas/otp,dgud/otp,basho/otp,theom/otp,ahmedshafeeq/otp,jinshana/otp,lianghaivv/otp,ahmedshafeeq/otp,haguenau/otp,isvilen/otp,psyeugenic/otp,haguenau/otp,stolen/otp,jemsbhai/otp,ader1990/otp,RJ/otp,vic/otp,dgud/otp,RGafiyatullin/otp,legoscia/otp,hairyhum/otp,GinjaNinja32/otp,sitexa/otp,marquisthunder/otp,psyeugenic/otp,vladdu/otp,jamesruan/otp,enikki/otp,theom/otp,potatosalad/otp,ahmedshafeeq/otp,weisslj/otp,emile/otp,palas/otp,goertzenator/otp,potatosalad/otp,ahmedshafeeq/otp,marquisthunder/otp,haguenau/otp,johanclaesson/otp,cobusc/otp,awetzel/otp,schlagert/otp,electricimp/otp,bugs-erlang-org/otp,NOMORECOFFEE/otp,vic/otp,mikpe/otp,weisslj/otp,bjorng/otp,lrascao/otp,uabboli/otp,legoscia/otp,cnbin/otp,riverrun/otp,emacsmirror/erlang,falkevik/otp,stolen/otp,kvakvs/otp,fenollp/otp,hairyhum/otp,neeraj9/otp,emile/otp,saleyn/otp,bernardd/otp,enikki/otp,lucafavatella/otp,haguenau/otp,goertzenator/otp,jamesruan/otp,lianghaivv/otp,tuncer/otp,klarna/otp,tuncer/otp,mujiatong/otp,ferd/otp,tuncer/otp,mikpe/otp,jinshana/otp,dumbbell/otp,jamesruan/otp,RJ/otp,jinshana/otp,bernardd/otp,saleyn/otp,cobusc/otp,psyeugenic/otp,platinumthinker/otp,haguenau/otp,jinshana/otp,paladim/otp,awetzel/otp,lhslll/otp,dgud/otp,sammoth-wazoku/otp,bjorng/otp,haguenau/otp,RJ/otp,isvilen/otp,vinoski/otp,uabboli/otp,falkevik/otp,erlang/otp,emile/otp,cobusc/otp,rlipscombe/otp,paulcager/otp,platinumthinker/otp,kvakvs/otp,theom/otp,msantos/otp,lucafavatella/otp,bsmr-erlang/otp,aboroska/otp,jj1bdx/otp,lianghaivv/otp,lightcyphers/otp,vinoski/otp,RaimoNiskanen/otp,GinjaNinja32/otp,jemsbhai/otp,bjorng/otp,getong/otp,release-project/otp,kvakvs/otp,GinjaNinja32/otp,lightcyphers/otp,sitexa/otp,getong/otp,g-andrade/otp,lemenkov/otp,vic/otp,jemsbhai/otp,uabboli/otp,derek121/otp,beni55/otp,schlagert/otp,vladdu/otp,dumbbell/otp,vic/otp,tuncer/otp,RaimoNiskanen/otp,NOMORECOFFEE/otp,bjorng/otp,weisslj/otp,RGafiyatullin/otp,NOMORECOFFEE/otp,aboroska/otp,stolen/otp,paladim/otp,klarna/otp,entropiae/otp,Teino1978-Corp/erlang-otp,sdebnath/otp,RaimoNiskanen/otp,erlang/otp,release-project/otp,palas/otp,stolen/otp,jj1bdx/otp,krishnakumar4a4/otp,g-andrade/otp,rlipscombe/otp,haguenau/otp,schlagert/otp,vinoski/otp,kvakvs/otp,entropiae/otp,lhslll/otp,RaimoNiskanen/otp,emacsmirror/erlang,lightcyphers/otp,uabboli/otp,lucafavatella/otp,rlipscombe/otp,dumbbell/otp,getong/otp,johanclaesson/otp,RaimoNiskanen/otp,jinshana/otp,RoadRunnr/otp,enikki/otp,sdebnath/otp,RaimoNiskanen/otp,derek121/otp,jemsbhai/otp,bugs-erlang-org/otp,RoadRunnr/otp,stolen/otp,lucafavatella/otp,neeraj9/otp,lemenkov/otp,dgud/otp,falkevik/otp,bernardd/otp,goertzenator/otp,matwey/otp,c-rack/otp,lightcyphers/otp,goertzenator/otp,g-andrade/otp,vinoski/otp,bsmr-erlang/otp,ahmedshafeeq/otp,enikki/otp,bernardd/otp,ferd/otp,Teino1978-Corp/erlang-otp,jinshana/otp,haguenau/otp,gjaldon/otp,bernardd/otp,vladdu/otp,lemenkov/otp,RichMorin/otp,sammoth-wazoku/otp,jinshana/otp,VincentHHL/otp,VincentHHL/otp,falkevik/otp,rlipscombe/otp,saleyn/otp,schlagert/otp,isvilen/otp,lhslll/otp,aboroska/otp,rlipscombe/otp,kvakvs/otp,beni55/otp,Teino1978-Corp/otp,vladdu/otp,sdebnath/otp,fenollp/otp,electricimp/otp,jamesruan/otp,psyeugenic/otp,massemanet/otp,kvakvs/otp,bernardd/otp,aboroska/otp,johanclaesson/otp,vladdu/otp,rlipscombe/otp,neeraj9/otp,yangchengjian/otp,basho/otp,release-project/otp,ferd/otp,lantti/otp,lhslll/otp,release-project/otp,paulcager/otp,massemanet/otp,getong/otp,awetzel/otp,c-rack/otp,lightcyphers/otp,VincentHHL/otp,ahmedshafeeq/otp,tuncer/otp,benoitc/otp-1,bjorng/otp,lightcyphers/otp,RichMorin/otp,theom/otp,gjaldon/otp,riverrun/otp,marquisthunder/otp,sammoth-wazoku/otp,johanclaesson/otp,matwey/otp,ader1990/otp,saleyn/otp,bsmr-erlang/otp,emile/otp,jj1bdx/otp,neeraj9/otp,ferd/otp,NOMORECOFFEE/otp,vinoski/otp,yangchengjian/otp,g-andrade/otp,mikpe/otp,saleyn/otp,benoitc/otp-1,c-rack/otp,falkevik/otp,getong/otp,entropiae/otp,vic/otp,falkevik/otp,palas/otp,release-project/otp,RichMorin/otp,vladdu/otp,lucafavatella/otp,mujiatong/otp,RGafiyatullin/otp,potatosalad/otp,paulcager/otp,dgud/otp,goertzenator/otp,lemenkov/otp,ferd/otp,derek121/otp,lucafavatella/otp,platinumthinker/otp,VincentHHL/otp,tuncer/otp,legoscia/otp,RaimoNiskanen/otp,isvilen/otp,dumbbell/otp,bsmr-erlang/otp,kvakvs/otp,lantti/otp,weisslj/otp,c-rack/otp,lantti/otp,tuncer/otp,matwey/otp,krishnakumar4a4/otp,c-rack/otp,psyeugenic/otp,lrascao/otp,paulcager/otp,potatosalad/otp,benoitc/otp-1,g-andrade/otp,krishnakumar4a4/otp,goertzenator/otp,RJ/otp,potatosalad/otp,stolen/otp,RichMorin/otp,NOMORECOFFEE/otp,VincentHHL/otp,palas/otp,potatosalad/otp,sdebnath/otp,lightcyphers/otp,palas/otp,derek121/otp,bsmr-erlang/otp,vinoski/otp,mikpe/otp,mikpe/otp,sitexa/otp,klarna/otp,lianghaivv/otp,uabboli/otp,VincentHHL/otp,emile/otp,mikpe/otp,jamesruan/otp,weisslj/otp,emacsmirror/erlang,uabboli/otp,mujiatong/otp,electricimp/otp,cnbin/otp,yangchengjian/otp,emile/otp,klarna/otp,derek121/otp,lantti/otp,release-project/otp,riverrun/otp,krishnakumar4a4/otp,beni55/otp,GinjaNinja32/otp,neeraj9/otp,bugs-erlang-org/otp,legoscia/otp,lrascao/otp,beni55/otp,rlipscombe/otp,Teino1978-Corp/otp,fenollp/otp,Teino1978-Corp/erlang-otp,benoitc/otp-1,lianghaivv/otp,stolen/otp,Teino1978-Corp/otp,saleyn/otp,RichMorin/otp,platinumthinker/otp,mujiatong/otp,lrascao/otp,vinoski/otp,vinoski/otp,krishnakumar4a4/otp,mikpe/otp,Teino1978-Corp/erlang-otp,RaimoNiskanen/otp,lantti/otp,bernardd/otp,g-andrade/otp,lhslll/otp,dgud/otp,potatosalad/otp,uabboli/otp,lantti/otp,dumbbell/otp,sdebnath/otp,RGafiyatullin/otp,matwey/otp,uabboli/otp,release-project/otp,mikpe/otp,falkevik/otp,msantos/otp,cnbin/otp,massemanet/otp,yangchengjian/otp,dgud/otp,sdebnath/otp,marquisthunder/otp,rlipscombe/otp,lrascao/otp,RGafiyatullin/otp,ferd/otp,benoitc/otp-1,lianghaivv/otp,matwey/otp,g-andrade/otp,aboroska/otp,lantti/otp,RoadRunnr/otp,krishnakumar4a4/otp,vladdu/otp,beni55/otp,platinumthinker/otp,bernardd/otp,entropiae/otp,potatosalad/otp,emile/otp,emile/otp,klarna/otp,mujiatong/otp,weisslj/otp,fenollp/otp,lrascao/otp,lemenkov/otp,lrascao/otp,emacsmirror/erlang,electricimp/otp,theom/otp,RGafiyatullin/otp,emile/otp,jamesruan/otp,marquisthunder/otp,schlagert/otp,electricimp/otp,awetzel/otp,johanclaesson/otp,dumbbell/otp,emacsmirror/erlang,vladdu/otp,g-andrade/otp,paladim/otp,jj1bdx/otp,matwey/otp,RoadRunnr/otp,lightcyphers/otp,ader1990/otp,benoitc/otp-1,matwey/otp,enikki/otp,yangchengjian/otp,jj1bdx/otp,bsmr-erlang/otp,jemsbhai/otp,msantos/otp,gjaldon/otp,jj1bdx/otp,isvilen/otp,sitexa/otp,legoscia/otp,vic/otp,GinjaNinja32/otp,palas/otp,awetzel/otp,lemenkov/otp,cobusc/otp,derek121/otp,aboroska/otp,kvakvs/otp,paladim/otp,erlang/otp,gjaldon/otp,RaimoNiskanen/otp,c-rack/otp,lucafavatella/otp,saleyn/otp,uabboli/otp,yangchengjian/otp,theom/otp,schlagert/otp,lhslll/otp,paladim/otp,erlang/otp,derek121/otp,sammoth-wazoku/otp,ader1990/otp,release-project/otp,isvilen/otp,beni55/otp,paladim/otp,entropiae/otp,jemsbhai/otp,cnbin/otp,electricimp/otp,erlang/otp,schlagert/otp,Teino1978-Corp/otp,erlang/otp