Fix operation order in ccall