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 21:02:04 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> Maybe try this on the files I modified today, to see how many problems
> I missed.  (I tried this with GCC 4.2.4, but got zero matches from
> egrep, probably because the output format of -Wconversion is
> completely different.

Let's see...

Here's intervals.c:

intervals.c:1938: warning: conversion to 'int' from 'long int' may alter its 
value
intervals.c:1961: warning: conversion to 'int' from 'long int' may alter its 
value

Almost totally clean.

editfns.c, however:

make -k 2>&1 | egrep "conversion.*'int'.*(Lisp_Ob|long)"
editfns.c:279: warning: conversion to 'int' from 'long int' may alter its value
editfns.c:281: warning: conversion to 'int' from 'long int' may alter its value
editfns.c:283: warning: conversion to 'int' from 'long int' may alter its value
editfns.c:825: warning: conversion to 'int' from 'long int' may alter its value
editfns.c:997: warning: conversion to 'int' from 'long int' may alter its value
editfns.c:1012: warning: conversion to 'int' from 'long int' may alter its value
editfns.c:1533: warning: conversion to 'int' from 'Lisp_Object' may alter its 
value
editfns.c:1683: warning: conversion to 'int' from 'long int' may alter its value
editfns.c:1807: warning: conversion to 'int' from 'Lisp_Object' may alter its 
value
editfns.c:1808: warning: conversion to 'int' from 'Lisp_Object' may alter its 
value

But I haven't looked at the cases or what they deal with.

-- 
(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]