Opened 20 years ago

Closed 20 years ago

#526 closed defect (fixed)

assignment/comparison bug in mapswf.c

Reported by: steve@… Owned by: mapserverbugs
Priority: high Milestone:
Component: Output-SWF Version: 4.1
Severity: normal Keywords:
Cc:

Description

I thought I posted this to the developers list.. but since I can't find the
email I guess I must've just fantasized about posting it. ;-)

Anyway.. this one got me till I tracked it down:

[vh10-10:~/Packages/CVS_Mapserver] steve% cvs diff -C 5 mapswf.c
Index: mapswf.c
===================================================================
RCS file: /data2/cvsroot/mapserver/mapswf.c,v
retrieving revision 1.33
diff -C5 -r1.33 mapswf.c
*** mapswf.c    3 Dec 2003 02:03:41 -0000       1.33
--- mapswf.c    31 Dec 2003 04:23:19 -0000
***************
*** 2067,2077 ****
  
      if (panIndex && nSize > 0)
      {
          for (i=0; i<nSize; i++)
          {
!             if (panIndex[i] = nIndex)
              {
                  nIndice = i;
                  break;
              }
          }
--- 2067,2077 ----
  
      if (panIndex && nSize > 0)
      {
          for (i=0; i<nSize; i++)
          {
!             if (panIndex[i] == nIndex)
              {
                  nIndice = i;
                  break;
              }
          }


-steve

Change History (1)

comment:1 by dmorissette, 20 years ago

Resolution: fixed
Status: newclosed
Thanks for the patch. I applied it to the CVS source (version 4.1).
Note: See TracTickets for help on using tickets.