🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87579

Re: lsh returns wrong result

#87579
From: Erik Naggum
Date: Wed, 14 Sep 1994 18:37
18 lines
1079 bytes
|   In GNU Emacs 19.26.2 (m68k-hp-bsd4.3) of Thu Sep  8 1994 on churchy.gnu.ai.mit.edu
|   
|   Try the following:
|   
|   (lsh 1182945 -16)
|   =>  -2031598
|   
|   This is wrong.  lsh by a negative amount should always return a positive 
|   result.

(lsh 1182945 -16)
=> 18

on a SPARC, compiled with gcc 2.6.0.

I don't think emacs is at fault.

#<Erik>
Technical Details
Message-ID: <19940914.5095@naggum.no>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!naggum.no!erik
References: <9409122040.AA10617@mole.gnu.ai.mit.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,59193501ea35de77
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-15 07:51:45 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!naggum.no!erik
From: erik@naggum.no (Erik Naggum)
Newsgroups: gnu.emacs.bug
Subject: Re: lsh returns wrong result
Date: 14 Sep 1994 14:37:12 -0400
Organization: Naggum Software; +47 2295 0313
Lines: 18
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <19940914.5095@naggum.no>
References: <9409122040.AA10617@mole.gnu.ai.mit.edu>