Xref: utzoo comp.lang.c:31728 comp.std.c:3571 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!hp4nl!charon!aeb From: aeb@cwi.nl (Andries Brouwer) Newsgroups: comp.lang.c,comp.std.c Subject: Re: shift left arithmetic Message-ID: <2101@charon.cwi.nl> Date: 10 Sep 90 17:18:25 GMT References: <2098@charon.cwi.nl> <3973@bingvaxu.cc.binghamton.edu> Sender: news@cwi.nl Followup-To: comp.lang.c Lines: 10 vu0310@bingvaxu.cc.binghamton.edu (R. Kym Horsell) writes: #>While debugging an Australian computer algebra package #>I stumbled over the following: 1<<32 produced 0, but #>int a; a=1; a<<32 produced 1. (Of course the word length #Compiler (may not be) broken -- try 1L<<32. (You didn't #say that the size of _int_'s was 32 bits). True, but in fact it was, and 1<<32 and 1L<<32 produce the same results.