Fix issue #6405
Fix issue #6405

Apply patch suggested in issue discussion

seibert/numba,numba/numba,stuartarchibald/numba,stuartarchibald/numba,IntelLabs/numba,gmarkall/numba,seibert/numba,cpcloud/numba,seibert/numba,IntelLabs/numba,stuartarchibald/numba,numba/numba,stuartarchibald/numba,seibert/numba,stonebig/numba,cpcloud/numba,cpcloud/numba,numba/numba,stuartarchibald/numba,cpcloud/numba,IntelLabs/numba,IntelLabs/numba,stonebig/numba,stonebig/numba,numba/numba,stonebig/numba,numba/numba,cpcloud/numba,gmarkall/numba,gmarkall/numba,gmarkall/numba,gmarkall/numba,stonebig/numba,seibert/numba,IntelLabs/numba