Article View: borland.public.jbuilder.java.language
Article #520Re: Converting int to unsigned int
From: Shankar Unni
Date: Wed, 15 Jun 2005 21:37
Date: Wed, 15 Jun 2005 21:37
13 lines
1227 bytes
1227 bytes
Rick wrote: > I thought the conversion would be this, > uint16 = int16 * 2 +1 > but I'm not sure though FAQ. uint16 = int16 & 0xffff; Ditto for "signed bytes to unsigned bytes": ubyte = sbyte & 0xff;
Technical Details
Message-ID:
<42b09f91@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42b02669@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,7f36f11f2652901 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 15 Jun 2005 14:37:21 -0700 From: Shankar Unni <shankarunni@netscape.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Converting int to unsigned int References: <42b02669@newsgroups.borland.com> In-Reply-To: <42b02669@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.120.146.125 Message-ID: <42b09f91@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118871441 68.120.146.125 (15 Jun 2005 14:37:21 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail