#1118 Fixed gcc warning in sparsity_internal.cpp