From: Sam Hocevar <sam@zoy.org>
To: Git List <git@vger.kernel.org>
Subject: Re: git-grep Bus Error
Date: Mon, 9 Mar 2009 00:41:41 +0100 [thread overview]
Message-ID: <20090308234141.GJ12880@zoy.org> (raw)
In-Reply-To: <C36B091A-ABE9-4C74-9E59-4EBD50E3B9F5@gernhardtsoftware.com>
On Sun, Mar 08, 2009, Brian Gernhardt wrote:
> > printf( "%d %d %d",
> > match.rm_so, match.rm_eo,
> > match.rm_eo - match.rm_so );
>
> .gitignore:0 0 3\033[31m\033[1m(nugit
> .mailmap:23 0 26(null)\033[31m\033[1m(nugit-shortlog to fix a few
> botched name translations-shortlog to fix a few botched name
> translations
>
> And now I'm baffled. Apparently my computer thinks 0 - 0 == 3 and 0 -
> 23 == 26.
rm_so and rm_eo are ints on Linux but off_t's on Darwin, hence
probably int64_t's here. You should cast the arguments.
--
Sam.
next prev parent reply other threads:[~2009-03-08 23:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-08 23:27 git-grep Bus Error Brian Gernhardt
2009-03-08 23:41 ` Sam Hocevar [this message]
2009-03-09 0:58 ` Brian Gernhardt
2009-03-09 1:11 ` Junio C Hamano
2009-03-09 1:18 ` Junio C Hamano
2009-03-09 1:19 ` Brian Gernhardt
2009-03-09 1:24 ` [PATCH] grep: cast printf %.*s "precision" argument explicitly to int Junio C Hamano
2009-03-09 1:48 ` git-grep Bus Error Brian Gernhardt
2009-03-09 0:29 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090308234141.GJ12880@zoy.org \
--to=sam@zoy.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).