Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/iso2d.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/iso2d.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 954, Sat Apr 23 12:22:43 2011 UTC revision 957, Sat Apr 23 12:51:20 2011 UTC
# Line 25  Line 25 
25          // This is really what "die" is for, though (see below).          // This is really what "die" is for, though (see below).
26          if (!inside(pos, F) || steps > stepsMax) {          if (!inside(pos, F) || steps > stepsMax) {
27            // HEY (BUG) not able to use NaN as in "pos = [nan,nan]"            // HEY (BUG) not able to use NaN as in "pos = [nan,nan]"
28            // generated C code "vec2f(nanf, nanf)" causes problems            // generated C code "vec2f(nanf, nanf)" causes problems:
29            pos = [∞,∞];            // iso2d.c: In function ‘sample_update’:
30              // iso2d.c:86: error: incompatible type for argument 1 of ‘vec2f’
31              // iso2d.c:86: error: incompatible type for argument 2 of ‘vec2f’
32              // uncaught exception Fail [Fail: error compiling/linking]
33              //   raised at c-target/c-target.sml:323.14-323.44
34              pos = [∞,∞];  // should be: pos = [nan,nan];
35            // HEY (BUG) we shouldn't even have to use non-finite values;            // HEY (BUG) we shouldn't even have to use non-finite values;
36            // we should be able to just say "die;".  Currently, using            // we should be able to just say "die;".  Currently, using
37            // "die" leads to the program never finishing...            // "die" leads to the program never finishing...

Legend:
Removed from v.954  
changed lines
  Added in v.957

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0