[PATCH 2/2] ruby: fix missing symbol UINT2FIX()
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 20 May 2013 12:24:24 +0000 (07:24 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:54:51 +0000 (09:54 -0800)
de/92f1adab175422e0876393210a35f696aaedaa [new file with mode: 0644]

diff --git a/de/92f1adab175422e0876393210a35f696aaedaa b/de/92f1adab175422e0876393210a35f696aaedaa
new file mode 100644 (file)
index 0000000..f3c01fa
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <felipe.contreras@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7A261429E30\r
+       for <notmuch@notmuchmail.org>; Mon, 20 May 2013 05:26:12 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id wvzarEuILBmh for <notmuch@notmuchmail.org>;\r
+       Mon, 20 May 2013 05:26:06 -0700 (PDT)\r
+Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com\r
+       [209.85.214.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E605D431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 20 May 2013 05:26:05 -0700 (PDT)\r
+Received: by mail-ob0-f182.google.com with SMTP id va2so6918766obc.27\r
+       for <notmuch@notmuchmail.org>; Mon, 20 May 2013 05:26:03 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
+       :references; bh=Vjbhatu2WaD0Cx/rgyYIu3CGd2eJdyD90xsZ6xONKng=;\r
+       b=TLYQATsqvnndy+4RRzSc1rCh8eF9R+J8wp3WnHfAERwYAUobFHnKnQMihddJ6vIQUl\r
+       49nAOaRehvJZnY6hVWX1CP9Bxn0yjRkUoiOiBIgF2caTRXcahMpKRhCTHYVHnbY5KulY\r
+       V5Gsx2+kiyk+RI6vresXDejKi2nAJco9EYmsAT4KKbKTUJlNBGYLuJfwaBfA+aTWdOZa\r
+       VVmaAnoT4bOt+pYac/b6oYQrYfRKeVjIUvK64R5qkDKpouK/3gsVlT+FqLqCoGhkMBE/\r
+       0fd/AgLqCbgLj3EVL6Llfou750Ndy4eP9/pT8Bcg7MagWRi2cL8fmQkgs+ZSnlWTIW8i\r
+       I1Fw==\r
+X-Received: by 10.182.129.101 with SMTP id nv5mr26285821obb.56.1369052763517; \r
+       Mon, 20 May 2013 05:26:03 -0700 (PDT)\r
+Received: from localhost (187-163-100-70.static.axtel.net. [187.163.100.70])\r
+       by mx.google.com with ESMTPSA id n6sm20606995oel.8.2013.05.20.05.26.01\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Mon, 20 May 2013 05:26:02 -0700 (PDT)\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] ruby: fix missing symbol UINT2FIX()\r
+Date: Mon, 20 May 2013 07:24:24 -0500\r
+Message-Id: <1369052664-17869-3-git-send-email-felipe.contreras@gmail.com>\r
+X-Mailer: git-send-email 1.8.3.rc3.286.g3d43083\r
+In-Reply-To: <1369052664-17869-1-git-send-email-felipe.contreras@gmail.com>\r
+References: <1369052664-17869-1-git-send-email-felipe.contreras@gmail.com>\r
+Cc: Ali Polatel <alip@exherbo.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 20 May 2013 12:26:12 -0000\r
+\r
+It has never existed in Ruby (maybe JRuby). Fortunately the symbols are\r
+loaded lazily, so nobody would notice unless they try\r
+'query::count_messages'.\r
+\r
+Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
+---\r
+ bindings/ruby/query.c | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/bindings/ruby/query.c b/bindings/ruby/query.c\r
+index e5ba1b7..1658ede 100644\r
+--- a/bindings/ruby/query.c\r
++++ b/bindings/ruby/query.c\r
+@@ -180,5 +180,5 @@ notmuch_rb_query_count_messages (VALUE self)\r
+      * (function may return 0 after printing a message)\r
+      * Thus there is nothing we can do here...\r
+      */\r
+-    return UINT2FIX(notmuch_query_count_messages(query));\r
++    return UINT2NUM(notmuch_query_count_messages(query));\r
+ }\r
+-- \r
+1.8.3.rc3.286.g3d43083\r
+\r