From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 87B9B3011D for ; Fri, 29 Sep 2000 12:36:28 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id e8TGaSY08795 for axp-list@listman.redhat.com; Fri, 29 Sep 2000 12:36:28 -0400 Received: from newton.math.purdue.edu (root@newton.math.purdue.edu [128.210.3.6]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id e8TGaRD08791 for ; Fri, 29 Sep 2000 12:36:28 -0400 Received: from polya.math.purdue.edu (lucier@polya.math.purdue.edu [128.210.3.194]) by newton.math.purdue.edu (8.10.1/8.10.1/PURDUE_MATH-4.0) with ESMTP id e8TGaQi14415 for ; Fri, 29 Sep 2000 11:36:26 -0500 (EST) Received: (from lucier@localhost) by polya.math.purdue.edu (8.9.3/8.9.3/PURDUE_MATH-3.2) id LAA20719 for axp-list@redhat.com; Fri, 29 Sep 2000 11:36:26 -0500 (EST) Date: Fri, 29 Sep 2000 11:36:26 -0500 (EST) From: Brad Lucier Message-Id: <200009291636.LAA20719@polya.math.purdue.edu> To: axp-list@redhat.com Subject: Re: long->double->long goes negative X-Sun-Charset: US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors > so u expect +int -> +float -> -int to be an A-OK situation. Gee what other > positive float numbers would u expect to give u negative results. > > it should be either a 0, or a long.MAX value. going neg ( or long.MIN ) is > not reasonable or rational > /gat > > In my opinion, the results would be ok if it was converted to an unsigned > long. Then the high order bit would not be representative of a sign bit. Let me make a suggestion: when you post to this list, say what bothers you explicitly. Here, you don't seem to like how the Alpha kernel implements behavior that is undefined according to the C standard; if you had said this up front, then I wouldn't have replied, because there is nothing sensible that I could have added. Brad