From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id B6CDB7F2AA for ; Thu, 20 Dec 2012 21:32:28 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of thomas.braibant@gmail.com) identity=pra; client-ip=209.85.215.52; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="thomas.braibant@gmail.com"; x-sender="thomas.braibant@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of thomas.braibant@gmail.com designates 209.85.215.52 as permitted sender) identity=mailfrom; client-ip=209.85.215.52; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="thomas.braibant@gmail.com"; x-sender="thomas.braibant@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-la0-f52.google.com) identity=helo; client-ip=209.85.215.52; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="thomas.braibant@gmail.com"; x-sender="postmaster@mail-la0-f52.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsIBAHh101DRVdc0jWdsb2JhbABFhXMBt3QIFg4BAQEBCQkLCRIGI4IfAQVAARseAwwGBQs7IgERAQUBHIgZAQMPmnOMM4J7hSAKGScNWYh2AQUMjWWDKQOWC45oFimEFg X-IronPort-AV: E=Sophos;i="4.84,326,1355094000"; d="scan'208";a="166460941" Received: from mail-la0-f52.google.com ([209.85.215.52]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 20 Dec 2012 21:32:28 +0100 Received: by mail-la0-f52.google.com with SMTP id l5so3721338lah.39 for ; Thu, 20 Dec 2012 12:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=P83SvKZB5DvcAVFOnv+wyzU+rh3maK74QTrKucjw+5w=; b=Nc5xoSWu36Ms3nomb9mPEHqn+GitdQRSR2wSutAbsU4k8FcBaK6LAw6URWsr7jwXFW uCYjZKdTAT66GjvZiNnWXEIu1u3k1nuHcoOo8k8meZmyKv7iK7jTPctEDSDf8EjTvglr NIqLrG0UDE7zRab4h4zVt+qWy0lHtNs0frR3MCBVsonvm86A7dGJIccZ0ZEFYg8drr0c E8Ynet7KYTr64/7qQdIcEYFpDeGvvggjnZXit1AGQiWkIGkyJi9nKrpYQ7X5TSKU5j5L dRmxs4/BPQeZINoTydb6F4z5wgVMF+1XA0XyDIlxMflbLFYPOmR0Ef4wneIhiyNM3q/F cfhQ== Received: by 10.112.101.135 with SMTP id fg7mr4352591lbb.87.1356035547064; Thu, 20 Dec 2012 12:32:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.29.197 with HTTP; Thu, 20 Dec 2012 12:32:07 -0800 (PST) In-Reply-To: References: From: Thomas Braibant Date: Thu, 20 Dec 2012 21:32:07 +0100 Message-ID: To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Subject: [Caml-list] Re: Hashing failure The second piece of code should read > let hkey = H.hash d in > let index = (abs hkey) mod (Array.length t.table) in > let bucket = t.table.(index) in (* 1 *) Sorry for the noise.