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

Comparing src/gen/gensdaymtx.c (file contents):
Revision 1.11 by greg, Mon Aug 4 20:50:41 2025 UTC vs.
Revision 1.12 by greg, Mon Aug 4 23:45:20 2025 UTC

# Line 939 | Line 939 | main
939                  case 'f':
940                          for (j = 0; j < nstored; j++) {
941                                  float ment[NSSAMP];
942 <                                for (k = NSSAMP - 1; k >= 0; k--) {
943 <                                        ment[k] = mtx_data[mtx_offset + k];
942 >                                for (k = 0; k < NSSAMP; k++) {
943 >                                        ment[NSSAMP-1 - k] = mtx_data[mtx_offset + k];
944                                  }
945                                  putbinary(ment, sizeof(float), NSSAMP, stdout);
946                                  mtx_offset += NSSAMP * nskypatch;
# Line 949 | Line 949 | main
949                  case 'd':
950                          for (j = 0; j < nstored; j++) {
951                                  double ment[NSSAMP];
952 <                                for (k = NSSAMP - 1; k >= 0; k--) {
953 <                                        ment[j] = mtx_data[mtx_offset + k];
952 >                                for (k = 0; k < NSSAMP; k++) {
953 >                                        ment[NSSAMP-1 - k] = mtx_data[mtx_offset + k];
954                                  }
955                                  putbinary(ment, sizeof(double), NSSAMP, stdout);
956                                  mtx_offset += NSSAMP * nskypatch;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines