Case-Shiller says home prices weakened in October