MAINT: int->npy_intp conversions in the ndimage interpolation C code
MAINT: int->npy_intp conversions in the ndimage interpolation C code

following a comment on scipy github issue 3733
This is a backported version of https://github.com/scipy/scipy/pull/4218

scipy/scipy,petebachant/scipy,rmcgibbo/scipy,Kamp9/scipy,ortylp/scipy,behzadnouri/scipy,mtrbean/scipy,maciejkula/scipy,mhogg/scipy,mgaitan/scipy,Srisai85/scipy,minhlongdo/scipy,surhudm/scipy,arokem/scipy,njwilson23/scipy,anielsen001/scipy,ChanderG/scipy,fredrikw/scipy,ortylp/scipy,mhogg/scipy,zxsted/scipy,andyfaff/scipy,e-q/scipy,Stefan-Endres/scipy,sonnyhu/scipy,surhudm/scipy,perimosocordiae/scipy,mdhaber/scipy,nvoron23/scipy,newemailjdm/scipy,Shaswat27/scipy,tylerjereddy/scipy,sriki18/scipy,maniteja123/scipy,fernand/scipy,FRidh/scipy,ChanderG/scipy,zaxliu/scipy,pyramania/scipy,haudren/scipy,matthewalbani/scipy,Gillu13/scipy,rgommers/scipy,witcxc/scipy,andim/scipy,gfyoung/scipy,bkendzior/scipy,WillieMaddox/scipy,endolith/scipy,chatcannon/scipy,mingwpy/scipy,jakevdp/scipy,aman-iitj/scipy,futurulus/scipy,sauliusl/scipy,lhilt/scipy,raoulbq/scipy,Eric89GXL/scipy,matthew-brett/scipy,WarrenWeckesser/scipy,andim/scipy,vberaudi/scipy,giorgiop/scipy,aeklant/scipy,jamestwebber/scipy,ilayn/scipy,chatcannon/scipy,anielsen001/scipy,cpaulik/scipy,WarrenWeckesser/scipy,perimosocordiae/scipy,fernand/scipy,endolith/scipy,ortylp/scipy,Gillu13/scipy,jsilter/scipy,rmcgibbo/scipy,sriki18/scipy,anntzer/scipy,dch312/scipy,trankmichael/scipy,nvoron23/scipy,mdhaber/scipy,mtrbean/scipy,mingwpy/scipy,gdooper/scipy,zxsted/scipy,scipy/scipy,petebachant/scipy,arokem/scipy,vigna/scipy,jseabold/scipy,anntzer/scipy,person142/scipy,Newman101/scipy,sauliusl/scipy,Dapid/scipy,vanpact/scipy,witcxc/scipy,Stefan-Endres/scipy,tylerjereddy/scipy,behzadnouri/scipy,ChanderG/scipy,lukauskas/scipy,sonnyhu/scipy,befelix/scipy,anntzer/scipy,Newman101/scipy,pbrod/scipy,jseabold/scipy,behzadnouri/scipy,Newman101/scipy,mikebenfield/scipy,aman-iitj/scipy,mingwpy/scipy,pnedunuri/scipy,pbrod/scipy,argriffing/scipy,fredrikw/scipy,Dapid/scipy,nvoron23/scipy,Newman101/scipy,nonhermitian/scipy,njwilson23/scipy,befelix/scipy,mikebenfield/scipy,argriffing/scipy,pizzathief/scipy,Dapid/scipy,kalvdans/scipy,gdooper/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,person142/scipy,richardotis/scipy,mingwpy/scipy,Shaswat27/scipy,pschella/scipy,matthew-brett/scipy,FRidh/scipy,raoulbq/scipy,njwilson23/scipy,FRidh/scipy,newemailjdm/scipy,WarrenWeckesser/scipy,nonhermitian/scipy,richardotis/scipy,larsmans/scipy,matthew-brett/scipy,jjhelmus/scipy,dominicelse/scipy,ales-erjavec/scipy,dominicelse/scipy,chatcannon/scipy,maciejkula/scipy,aman-iitj/scipy,niknow/scipy,ChanderG/scipy,maniteja123/scipy,anntzer/scipy,hainm/scipy,sriki18/scipy,ndchorley/scipy,mortada/scipy,zxsted/scipy,fernand/scipy,pyramania/scipy,dominicelse/scipy,felipebetancur/scipy,Srisai85/scipy,grlee77/scipy,jsilter/scipy,jseabold/scipy,gfyoung/scipy,felipebetancur/scipy,richardotis/scipy,sonnyhu/scipy,pyramania/scipy,Eric89GXL/scipy,pizzathief/scipy,anielsen001/scipy,mdhaber/scipy,argriffing/scipy,rgommers/scipy,pbrod/scipy,mgaitan/scipy,futurulus/scipy,mtrbean/scipy,matthewalbani/scipy,chatcannon/scipy,surhudm/scipy,jjhelmus/scipy,aman-iitj/scipy,felipebetancur/scipy,efiring/scipy,niknow/scipy,vhaasteren/scipy,kalvdans/scipy,vigna/scipy,woodscn/scipy,richardotis/scipy,pizzathief/scipy,kalvdans/scipy,WillieMaddox/scipy,aeklant/scipy,person142/scipy,vberaudi/scipy,apbard/scipy,pyramania/scipy,giorgiop/scipy,gef756/scipy,lukauskas/scipy,niknow/scipy,anielsen001/scipy,raoulbq/scipy,Srisai85/scipy,jor-/scipy,trankmichael/scipy,aeklant/scipy,jakevdp/scipy,nvoron23/scipy,zaxliu/scipy,pschella/scipy,pyramania/scipy,mortonjt/scipy,witcxc/scipy,gertingold/scipy,Newman101/scipy,vberaudi/scipy,befelix/scipy,woodscn/scipy,ales-erjavec/scipy,raoulbq/scipy,mingwpy/scipy,zerothi/scipy,aeklant/scipy,futurulus/scipy,jonycgn/scipy,hainm/scipy,petebachant/scipy,mgaitan/scipy,aman-iitj/scipy,giorgiop/scipy,dch312/scipy,ilayn/scipy,endolith/scipy,larsmans/scipy,ales-erjavec/scipy,giorgiop/scipy,bkendzior/scipy,sauliusl/scipy,Gillu13/scipy,jamestwebber/scipy,minhlongdo/scipy,scipy/scipy,mgaitan/scipy,woodscn/scipy,vanpact/scipy,piyush0609/scipy,josephcslater/scipy,Newman101/scipy,bkendzior/scipy,witcxc/scipy,vberaudi/scipy,raoulbq/scipy,Kamp9/scipy,WillieMaddox/scipy,sriki18/scipy,vigna/scipy,jjhelmus/scipy,jakevdp/scipy,Gillu13/scipy,apbard/scipy,gfyoung/scipy,vberaudi/scipy,arokem/scipy,Gillu13/scipy,mgaitan/scipy,argriffing/scipy,lukauskas/scipy,lhilt/scipy,trankmichael/scipy,futurulus/scipy,njwilson23/scipy,jonycgn/scipy,hainm/scipy,zxsted/scipy,zerothi/scipy,Eric89GXL/scipy,josephcslater/scipy,pschella/scipy,minhlongdo/scipy,vanpact/scipy,gfyoung/scipy,zerothi/scipy,surhudm/scipy,ortylp/scipy,tylerjereddy/scipy,rmcgibbo/scipy,e-q/scipy,jonycgn/scipy,cpaulik/scipy,woodscn/scipy,sriki18/scipy,e-q/scipy,anntzer/scipy,kleskjr/scipy,ChanderG/scipy,cpaulik/scipy,mhogg/scipy,zerothi/scipy,rgommers/scipy,anntzer/scipy,zaxliu/scipy,zaxliu/scipy,sonnyhu/scipy,minhlongdo/scipy,anielsen001/scipy,dch312/scipy,aman-iitj/scipy,andyfaff/scipy,lhilt/scipy,bkendzior/scipy,richardotis/scipy,vhaasteren/scipy,andyfaff/scipy,perimosocordiae/scipy,niknow/scipy,person142/scipy,gertingold/scipy,jor-/scipy,fredrikw/scipy,ilayn/scipy,zaxliu/scipy,Shaswat27/scipy,zxsted/scipy,grlee77/scipy,mikebenfield/scipy,cpaulik/scipy,lhilt/scipy,jakevdp/scipy,nmayorov/scipy,ilayn/scipy,petebachant/scipy,Shaswat27/scipy,andim/scipy,WarrenWeckesser/scipy,surhudm/scipy,minhlongdo/scipy,nvoron23/scipy,pnedunuri/scipy,trankmichael/scipy,Kamp9/scipy,efiring/scipy,jor-/scipy,pnedunuri/scipy,befelix/scipy,mortonjt/scipy,jamestwebber/scipy,FRidh/scipy,maciejkula/scipy,Gillu13/scipy,Kamp9/scipy,argriffing/scipy,pbrod/scipy,mortonjt/scipy,nonhermitian/scipy,futurulus/scipy,petebachant/scipy,ndchorley/scipy,gfyoung/scipy,apbard/scipy,mortada/scipy,futurulus/scipy,ales-erjavec/scipy,raoulbq/scipy,endolith/scipy,Kamp9/scipy,jjhelmus/scipy,scipy/scipy,chatcannon/scipy,aeklant/scipy,maniteja123/scipy,Kamp9/scipy,matthew-brett/scipy,Eric89GXL/scipy,rmcgibbo/scipy,ndchorley/scipy,fernand/scipy,jjhelmus/scipy,matthewalbani/scipy,maciejkula/scipy,bkendzior/scipy,gef756/scipy,mortada/scipy,fredrikw/scipy,maciejkula/scipy,FRidh/scipy,mortada/scipy,nmayorov/scipy,pschella/scipy,ortylp/scipy,zerothi/scipy,woodscn/scipy,newemailjdm/scipy,vhaasteren/scipy,aarchiba/scipy,endolith/scipy,kleskjr/scipy,jor-/scipy,mdhaber/scipy,minhlongdo/scipy,larsmans/scipy,andyfaff/scipy,zerothi/scipy,haudren/scipy,lukauskas/scipy,maniteja123/scipy,jonycgn/scipy,vhaasteren/scipy,aarchiba/scipy,Shaswat27/scipy,pbrod/scipy,Srisai85/scipy,richardotis/scipy,andim/scipy,pbrod/scipy,josephcslater/scipy,piyush0609/scipy,giorgiop/scipy,WillieMaddox/scipy,mtrbean/scipy,nvoron23/scipy,Srisai85/scipy,piyush0609/scipy,ales-erjavec/scipy,hainm/scipy,e-q/scipy,mtrbean/scipy,newemailjdm/scipy,behzadnouri/scipy,Shaswat27/scipy,vhaasteren/scipy,jamestwebber/scipy,vberaudi/scipy,sauliusl/scipy,ndchorley/scipy,gef756/scipy,grlee77/scipy,dch312/scipy,petebachant/scipy,josephcslater/scipy,jseabold/scipy,rmcgibbo/scipy,gertingold/scipy,mhogg/scipy,scipy/scipy,person142/scipy,haudren/scipy,apbard/scipy,ChanderG/scipy,gdooper/scipy,aarchiba/scipy,jamestwebber/scipy,nonhermitian/scipy,apbard/scipy,mtrbean/scipy,vigna/scipy,argriffing/scipy,anielsen001/scipy,giorgiop/scipy,larsmans/scipy,mikebenfield/scipy,fredrikw/scipy,pizzathief/scipy,mhogg/scipy,felipebetancur/scipy,zaxliu/scipy,jakevdp/scipy,rgommers/scipy,cpaulik/scipy,cpaulik/scipy,mortonjt/scipy,kleskjr/scipy,jsilter/scipy,efiring/scipy,kleskjr/scipy,kalvdans/scipy,Dapid/scipy,Stefan-Endres/scipy,behzadnouri/scipy,rgommers/scipy,Dapid/scipy,lhilt/scipy,perimosocordiae/scipy,pnedunuri/scipy,mingwpy/scipy,efiring/scipy,sonnyhu/scipy,aarchiba/scipy,jsilter/scipy,fernand/scipy,gertingold/scipy,mdhaber/scipy,scipy/scipy,arokem/scipy,mgaitan/scipy,maniteja123/scipy,piyush0609/scipy,matthewalbani/scipy,nmayorov/scipy,rmcgibbo/scipy,andim/scipy,jseabold/scipy,tylerjereddy/scipy,sauliusl/scipy,kleskjr/scipy,jor-/scipy,haudren/scipy,dominicelse/scipy,jsilter/scipy,efiring/scipy,andim/scipy,dominicelse/scipy,gef756/scipy,piyush0609/scipy,mortada/scipy,Dapid/scipy,Srisai85/scipy,haudren/scipy,gdooper/scipy,matthew-brett/scipy,FRidh/scipy,felipebetancur/scipy,ilayn/scipy,newemailjdm/scipy,sauliusl/scipy,piyush0609/scipy,larsmans/scipy,lukauskas/scipy,gdooper/scipy,felipebetancur/scipy,mortonjt/scipy,jonycgn/scipy,maniteja123/scipy,niknow/scipy,zxsted/scipy,grlee77/scipy,vanpact/scipy,ilayn/scipy,grlee77/scipy,behzadnouri/scipy,woodscn/scipy,ndchorley/scipy,arokem/scipy,ndchorley/scipy,njwilson23/scipy,vanpact/scipy,vigna/scipy,ales-erjavec/scipy,Eric89GXL/scipy,vhaasteren/scipy,sriki18/scipy,efiring/scipy,kalvdans/scipy,mortada/scipy,nmayorov/scipy,kleskjr/scipy,trankmichael/scipy,lukauskas/scipy,pnedunuri/scipy,pizzathief/scipy,mdhaber/scipy,vanpact/scipy,andyfaff/scipy,ortylp/scipy,haudren/scipy,hainm/scipy,trankmichael/scipy,surhudm/scipy,jonycgn/scipy,fredrikw/scipy,Eric89GXL/scipy,nonhermitian/scipy,aarchiba/scipy,nmayorov/scipy,matthewalbani/scipy,jseabold/scipy,sonnyhu/scipy,WillieMaddox/scipy,perimosocordiae/scipy,gertingold/scipy,WillieMaddox/scipy,mikebenfield/scipy,pnedunuri/scipy,andyfaff/scipy,njwilson23/scipy,chatcannon/scipy,mortonjt/scipy,Stefan-Endres/scipy,gef756/scipy,gef756/scipy,Stefan-Endres/scipy,Stefan-Endres/scipy,hainm/scipy,befelix/scipy,dch312/scipy,e-q/scipy,witcxc/scipy,josephcslater/scipy,WarrenWeckesser/scipy,fernand/scipy,perimosocordiae/scipy,niknow/scipy,larsmans/scipy,pschella/scipy,mhogg/scipy,newemailjdm/scipy,endolith/scipy