POV-Ray : Newsgroups : povray.programming : Problems with the sum() and prod(). (Bug in v3.5 ?) Server Time
23 Dec 2024 06:29:44 EST (-0500)
  Problems with the sum() and prod(). (Bug in v3.5 ?) (Message 1 to 2 of 2)  
From: Massimo Valentini
Subject: Problems with the sum() and prod(). (Bug in v3.5 ?)
Date: 10 Jan 2003 14:05:35
Message: <3e1f197f$1@news.povray.org>
Regarding the problem reported in povray.general (thread with same subject)
it seems to be a bug in the function 

void FNCode::compile_seq_op(ExprNode *expr, unsigned int op, DBL neutral)

Changing the line (1298)

 level = max(((int)(level)) - 2, 0) + min(level + 1, 3) + 3;

with:
 level = max(((int)(level)) - 2, 0) + min(level + 1, 3) + 6;

seems to fix. But I'm not sure this is the correct solution, but could 
be a starting point.

Massimo


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Problems with the sum() and prod(). (Bug in v3.5 ?)
Date: 10 Jan 2003 15:57:43
Message: <3e1f33c7@news.povray.org>
In article <3e1f197f$1@news.povray.org> , "Massimo Valentini" 
<six### [at] inwindit> wrote:

> Changing the line (1298)
>
>  level = max(((int)(level)) - 2, 0) + min(level + 1, 3) + 3;
>
> with:
>  level = max(((int)(level)) - 2, 0) + min(level + 1, 3) + 6;
>
> seems to fix. But I'm not sure this is the correct solution, but could
> be a starting point.

It ain't.  It just hides it.  The problem is far more complex and related to
the way the stack is handled and calculated.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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