Fixed build warning with gcc 4.7.3

  [Problem] build warning with gcc 4.7.3
            warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]