ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/radcompare.c
(Generate patch)

Comparing ray/src/util/radcompare.c (file contents):
Revision 2.27 by greg, Thu Feb 18 23:16:35 2021 UTC vs.
Revision 2.28 by greg, Mon Sep 27 19:00:04 2021 UTC

# Line 373 | Line 373 | setheadvar(char *val, void *p)
373                  tep->key = strcpy(malloc(kln+1), key);
374          if (tep->data) {        /* check for special cases */
375                  if (!strcmp(key, "EXPOSURE")) {
376 <                        sprintf(newval, "%f", atof(tep->data)*atof(val));
376 >                        sprintf(newval, "%.6e", atof(tep->data)*atof(val));
377                          vln = strlen(val = newval);
378                  }
379                  free(tep->data);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines