emacs-devel
[Top][All Lists]
Advanced

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

Re: trunk r113953: * image.c: Shrink memory needed for animation cache.


From: Lars Magne Ingebrigtsen
Subject: Re: trunk r113953: * image.c: Shrink memory needed for animation cache.
Date: Tue, 20 Aug 2013 01:19:03 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> +/* Size of ImageMagick image signatures, in bytes.  It's SHA-256 as a
> +   hex string, so it's 256 bits represented via 4 bits per byte.  */
> +enum { SIGNATURE_DIGESTSIZE = 256 / 4 };

Do we really need to know this?  It's a zero-terminated string (in a
larger block), so just by calling strdup, we're OK, and we don't need
any magical constants.

-- 
(domestic pets only, the antidote for overdose, milk.)
  No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php
  and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html



reply via email to

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