GNU bug report logs -
#36403
27.0.50; Trivial image.c bugs
Previous Next
Reported by: Pip Cet <pipcet <at> gmail.com>
Date: Thu, 27 Jun 2019 16:29:01 UTC
Severity: minor
Tags: fixed, patch
Found in version 27.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen [2022-10-04 16:06 +0200] wrote:
> "Basil L. Contovounesios" <contovob <at> tcd.ie> writes:
>
>> - (setcdr circ1 circ1)
>> - (setcdr circ2 circ2)
>> - (and (equal (image-size spec1 t) (cons 1 1))
>> - (equal (image-size spec2 t) (cons 1 1))))))
>> + (setcdr circ1 circ1)
>> + (setcdr circ2 circ2)
>> + (should (equal (image-size spec1 t) '(1 . 1)))
>> + (should (equal (image-size spec2 t) '(1 . 1)))))
>
> (cons 1 1) is not eq to (cons 1 1), but '(1 . 1) may or may not be eq to
> '(1 . 1) (depending on whether compiled or phase of the moon), which may
> be why that code is written that way? But in this case, I can't see how
> it would make a difference...
It doesn't matter whether the calls to image-size return the same
object. What matters is that both calls succeed (that they return the
correct result is also nice I guess, if that's what you're into ;).
--
Basil
This bug report was last modified 2 years and 277 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.