Fixed warning C4244.
Fixed warning C4267.
Fixed warning C4067.