View | Details | Raw Unified | Return to bug 113755
Collapse All | Expand All

(-)egg/wnnrpc.el (-2 / +8 lines)
Lines 714-721 Link Here
714
     ,send-expr ,@rcv-exprs))
714
     ,send-expr ,@rcv-exprs))
715
715
716
(defmacro wnnrpc-get-result (&rest body)
716
(defmacro wnnrpc-get-result (&rest body)
717
  `(let (result)
717
  `(let (result resulth)
718
     (comm-unpack (u) result)
718
     (comm-unpack (w w) resulth result)
719
     (cond ((and (= result 65535) (= resulth 65535))
720
	    (setq result -1))
721
	   ((= resulth (lsh (lsh resulth 16) -16))
722
	    (setq result (+ (lsh resulth 16) result)))
723
	   (t
724
	    (error "overflow")))
719
     (if (< result 0)
725
     (if (< result 0)
720
       (progn
726
       (progn
721
	 (comm-unpack (u) result)
727
	 (comm-unpack (u) result)

Return to bug 113755