From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.devel Subject: Re: composition bug Date: Wed, 17 Sep 2008 21:31:01 +0200 Organization: orebokech dot com Message-ID: <873ajy603u.fsf@elegiac.orebokech.com> References: <87hc8rn3ws.fsf@cyd.mit.edu> <87r67u3k52.fsf@elegiac.orebokech.com> <87iqt53mk7.fsf@elegiac.orebokech.com> <87zlmcxsq1.fsf@elegiac.orebokech.com> <87zlm86191.fsf@elegiac.orebokech.com> <87prn457u2.fsf@elegiac.orebokech.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221679882 26330 80.91.229.12 (17 Sep 2008 19:31:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2008 19:31:22 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 17 21:32:18 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kg2l6-0002wb-AO for ged-emacs-devel@m.gmane.org; Wed, 17 Sep 2008 21:32:16 +0200 Original-Received: from localhost ([127.0.0.1]:55583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg2k5-0004mg-7k for ged-emacs-devel@m.gmane.org; Wed, 17 Sep 2008 15:31:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg2jz-0004k5-7i for emacs-devel@gnu.org; Wed, 17 Sep 2008 15:31:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg2jw-0004h0-NO for emacs-devel@gnu.org; Wed, 17 Sep 2008 15:31:06 -0400 Original-Received: from [199.232.76.173] (port=50663 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg2jw-0004gm-Hk for emacs-devel@gnu.org; Wed, 17 Sep 2008 15:31:04 -0400 Original-Received: from smtp8-g19.free.fr ([212.27.42.65]:46626) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kg2jw-0005Ml-Ju for emacs-devel@gnu.org; Wed, 17 Sep 2008 15:31:04 -0400 Original-Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 00C1032A864; Wed, 17 Sep 2008 21:31:02 +0200 (CEST) Original-Received: from elegiac.orebokech.com (home.orebokech.com [82.67.41.165]) by smtp8-g19.free.fr (Postfix) with ESMTP id 6A30232A7D1; Wed, 17 Sep 2008 21:31:01 +0200 (CEST) Original-Received: by elegiac.orebokech.com (Postfix, from userid 1000) id 209033B224; Wed, 17 Sep 2008 21:31:01 +0200 (CEST) X-Face: }9mYu,e_@+e!`Z-P5kVXa3\_b:hdJ"B)ww[&=b<2=awG:GOIM, cyd@stupidchicken.com, emacs-devel@gnu.org In-Reply-To: (Kenichi Handa's message of "Wed, 17 Sep 2008 14:34:08 +0900") X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103924 Archived-At: Kenichi Handa writes: > (gdb) br composite.c:1432 Thanks, I should have started there because the problem was immediately obvious when in gdb: an EMACS_INT arg was being given the literal -1, which is int. On my machine (amd64), EMACS_INT is long and due to the traditional function prototype the value isn't casted automatically. I installed a fix. By the way, it looks like the functions in this file use int for buffer positions in many places, there could be other bugs like this one. Building with `-Wtraditional-conversion' on amd64 finds quite a few occurrences of width mismatch.