From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Catonano Newsgroups: gmane.lisp.guile.user Subject: unsigned-int Date: Thu, 22 Jun 2017 11:42:45 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1498124611 32326 195.159.176.226 (22 Jun 2017 09:43:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2017 09:43:31 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jun 22 11:43:28 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNye7-0008BK-97 for guile-user@m.gmane.org; Thu, 22 Jun 2017 11:43:27 +0200 Original-Received: from localhost ([::1]:57916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNyeC-0000n6-Dy for guile-user@m.gmane.org; Thu, 22 Jun 2017 05:43:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNydW-0000l6-R7 for guile-user@gnu.org; Thu, 22 Jun 2017 05:42:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNydW-0000oy-4l for guile-user@gnu.org; Thu, 22 Jun 2017 05:42:50 -0400 Original-Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:33576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNydV-0000ne-Tr for guile-user@gnu.org; Thu, 22 Jun 2017 05:42:50 -0400 Original-Received: by mail-wr0-x235.google.com with SMTP id r103so15664267wrb.0 for ; Thu, 22 Jun 2017 02:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=oSvbzDBe7w6LBkqhwpLsCUp0Zi7xKDT27kHD7xiwtxM=; b=LULJPCzf8YvW8gao7Yb0TQ1n87TpuhnWoefMTQ9/34XVgOulBpfWPuF3Mv1eNm1mgL 2JCLTzHfjv4n+tP/0BVUP/t3bqDvAezd6nV09vHLrqIlAQd3f7tZcAPCauIOzewR18Wp rb3CPatBehwCz6U/Bej7pnAZD/Z+J6BtPgcyvBDfVWVh/VlpFvAJZ18WsLtwYJwhizzo SOeafP5NhVRWftPeqDLjmizGBCfnf9PQWsjKzgafS3SFl21n7lmpMreIwLyS4dogbZPy 10N3DUc7yRxtvTn0iXTr3/TvIX4G5JOYaAlkYnk9G2uczxnziNJmo7PSoND47hBDGLsk MkLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oSvbzDBe7w6LBkqhwpLsCUp0Zi7xKDT27kHD7xiwtxM=; b=OEK/i9w9msxWbFx5I0KFK0GiZ4yzqRI9Wjf4fZuq84JcVuf7b9VeW61swGduW5SJbX NMnZnZlrI/2WIR+6W+wothF9Z7p/ICBGJDsefBcA1H7WHXyJGo/7t1mHY4BXNt8J3Lb+ Ha6qoxuv/ZwKqVxLGNPIU21HCCRMtub0IyzNGUYGJhan1bxbixiMiQ5hZ9f2bYl1C25j TPI2+wJYSWGLK3g0x0pNKQlb0+PRho3Jz0ZBmZAlnje9AyI3cDCuS7U2D/O5HEojnu7e ma/P9WacFdv+pXuZ8HBlLKOE/XsTLDQQ0lz4fgyeQTsT2XtbGzSsVk08VH/YLZnMmTaX 5o+g== X-Gm-Message-State: AKS2vOyHrOB9UeJl0op25PshY3oQvvDXkRg8+HintrMz7i/Cj4J3hIB5 3PLEf9NANQ+6vVvITUEdC3RdV4BUVkCh X-Received: by 10.80.177.209 with SMTP id n17mr1867864edd.177.1498124565982; Thu, 22 Jun 2017 02:42:45 -0700 (PDT) Original-Received: by 10.80.131.4 with HTTP; Thu, 22 Jun 2017 02:42:45 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13862 Archived-At: I can't extract correct values from unsigned-int's I can extract correct values from int, unsigned-short but NOT form an unsigned-int In that case the number that comes out is plainly wrong This is how I extract a number from an int (and it works) (bytevector-uint-ref (pointer->bytevector outcome-ptr (sizeof int)) 0 (endianness big) 1) ) This is an unsigned-short (and it works) (bytevector-uint-ref (pointer->bytevector columns-ptr (sizeof unsigned-short)) 0 (endianness big) 1) This is an unsigned-int and it DOESN'T work (bytevector-uint-ref (pointer->bytevector rows-ptr (sizeof unsigned-int)) 0 (endianness big) 1) Thanks in advance