Update pat1049.cpp