ticket VS-39

fix compiler error in regcache.cpp