POV-Ray : Newsgroups : povray.programming : Problems with the sum() and prod(). (Bug in v3.5 ?) : Problems with the sum() and prod(). (Bug in v3.5 ?) Server Time
4 Oct 2024 17:04:49 EDT (-0400)
  Problems with the sum() and prod(). (Bug in v3.5 ?)  
From: Massimo Valentini
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

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