From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p4FDxiOO025316 for ; Sun, 15 May 2011 15:59:44 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUBABLcz01KfVK2kGdsb2JhbACmDQgUAQEBAQkJDQcUBCGIcKQljBqCNYNnN4hiAQEDBoYTBJARhC+BEYVFO4M3 X-IronPort-AV: E=Sophos;i="4.64,369,1301868000"; d="scan'208";a="99069444" Received: from mail-wy0-f182.google.com ([74.125.82.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 15 May 2011 15:59:39 +0200 Received: by wyf23 with SMTP id 23so5218770wyf.27 for ; Sun, 15 May 2011 06:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=jXWmBAdrdC1k0Yym1vOvDWyyASX7Q5KK/5pKQq1PT3g=; b=b8ZbGZrn4QQ9J8/u1dXWJwrPos7gTLZqN1z4YPRtgkbZoAVVv57guWTPQlWeLKB03x OAg5inPFobmCPYxlB2X+eHYrnvMwzP3xKpfKNbnNEaiha93RehlUZQMoCHxekXB0HBnD TygYhhgUaUn3BEsYeLF5Ivjikuaq/PmsBFmvM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=JsaPXOEVQyJ40FnEN6zwziUg2E7IXUbuehTifa366MRuqVwXjoZIctqvCt0ikFbnPV y7cUhDUJQMwq9SVYTeRHKuB+P9ViCi+KIyfMtAVE9Nm+zocu4iyPEl+Eq+PdFgDM2pT7 rTSKvc8demSVYopxoc4F++0VR1XbWvX+noUz0= Received: by 10.216.62.195 with SMTP id y45mr1995372wec.15.1305467979065; Sun, 15 May 2011 06:59:39 -0700 (PDT) Received: from [172.16.13.82] (0xc2efec01.hotspot.tele.dk [194.239.236.1]) by mx.google.com with ESMTPS id m14sm2073677wes.38.2011.05.15.06.59.37 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 May 2011 06:59:38 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) From: Joel Reymont In-Reply-To: <88F79E1B-2D9F-4A17-A6B7-060074FF77E9@gmail.com> Date: Sun, 15 May 2011 15:59:36 +0200 Message-Id: <6BEA1A88-DF48-46D5-88FE-354D4767995F@gmail.com> References: <88F79E1B-2D9F-4A17-A6B7-060074FF77E9@gmail.com> To: caml-list X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p4FDxiOO025316 Subject: [Caml-list] Re: problem with array access in a c function On May 15, 2011, at 3:50 PM, Joel Reymont wrote: > This sets current_elem to 0x400 (1024) > > current_elem = Field(pollitem_array, n); I'm an idiot, forgive me! A fresh look by ygrek immediately pointed out the issue above ;-). Problem solved! -------------------------------------------------------------------------- - for hire: mac osx device driver ninja, kernel extensions and usb drivers ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------