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 2CB7F2FF70 for ; Fri, 6 Oct 2000 08:45:37 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id e96CjbF08740 for axp-list@listman.redhat.com; Fri, 6 Oct 2000 08:45:37 -0400 Received: from bob.usuhs.mil (bob.usuf2.usuhs.mil [131.158.186.183]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id e96CjaD08736 for ; Fri, 6 Oct 2000 08:45:36 -0400 Received: from bob.usuhs.mil ([131.158.186.184]) by bob.usuhs.mil (8.9.3/8.9.3) with ESMTP id IAA12230 for ; Fri, 6 Oct 2000 08:46:00 -0400 (EDT) Message-ID: <39DDC987.5DC049F4@bob.usuhs.mil> Date: Fri, 06 Oct 2000 07:45:59 -0500 From: Robert Williams X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.14aa1 alpha) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Porting issue: 32 to 64 bit pointer conversions Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 I'm trying to port malsync ( http://www.tomw.org/malsync/ ) to the alpha. There appear to be some 64 bit issues. The distributed code doesn't work on alpha. My question: What is the best way to handle 64 bit pointer to 32 bit integer conversions: The complaint: MAL31DBConfig.c: In function `MAL31DBConfigWriteData': MAL31DBConfig.c:68: warning: cast from pointer to integer of different size The code: 65 count = AGArrayCount(dbconfig->newids); 66 AGWriteCompactInt(w, count); 67 for(i = 0; i < count; i++) 68 AGWriteInt32(w, (uint32)(this is a long)AGArrayElementAt(dbconfig->newids, i)); Bob Williams