emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buffer size limitation in insdel.c


From: Lars Magne Ingebrigtsen
Subject: Re: Buffer size limitation in insdel.c
Date: Thu, 23 Sep 2010 16:21:58 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> Use "gcc -E" to see.

Ah, thanks.  That helps a lot in figuring out what the code actually is.

> In my case, the result is this:
>
>    matrix->window_left_col = (((((long) ((w)->left_col)) >> (3 - 1))));
>
> which looks correct, unless I'm totally confused.

I get the same in my gcc:

      matrix->window_left_col = (((((long) ((w)->left_col)) >> (3 - 1))));

So the warning is incorrect -- it's no longer a Lisp_Object at that
point.  But it's correct in that it's a potentially problematic
conversion.  (But probably isn't in actuality, since it's unlikely
w->left_col really is a more than 31 bits.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]