Update feature.cpp

Fix bug in reading compressed type data.