POV-Ray : Newsgroups : povray.programming : Oddity noticed in objects.h Server Time
21 Jul 2024 08:17:35 EDT (-0400)
  Oddity noticed in objects.h (Message 1 to 2 of 2)  
From: John VanSickle
Subject: Oddity noticed in objects.h
Date: 12 Oct 2002 09:08:08
Message: <3DA81ED0.14E82D6A@hotmail.com>
In objects.h of the source

#define Copy_Flag(Object1, Object2, Flag) \
  { (Object1)->Flags = (((Object1)->Flags) & (!Flag)) | \
                       (((Object2)->Flags) &  (Flag)); }

The inversion of Flag uses boolean inversion instead of bitwise
inversion.  On some compilers this won't work.  I haven't checked
the rest of the code to see how often this macro is used.

Regards,
John


Post a reply to this message

From: ABX
Subject: Re: Oddity noticed in objects.h
Date: 14 Oct 2002 05:02:44
Message: <vr1lqu0oon56gg964j0h2gbme2tm5tlnnr@4ax.com>
On Sat, 12 Oct 2002 15:08:32 +0200, John VanSickle
<evi### [at] hotmailcom> wrote:
> The inversion of Flag uses boolean inversion instead of bitwise
> inversion.  On some compilers this won't work.  I haven't checked
> the rest of the code to see how often this macro is used.

This was already reported and included in patches repository as "Copy Flag"
issue. Check http://abx.art.pl/pov/patches/patches.php?Date=2002-09-13

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.