Skip to content

Commit e54a823

Browse files
committed
fix: replace a statement by an assigment
The statement had no effect. It's in a block intended for initialization (as shown in the line 639) so an assigment was probably the intended behaviour. The graphical output is the same with or without this patch. Detected by a warning from gcc: spharm.c: In function ‘SpharmGenTest’: spharm.c:640:15: warning: statement with no effect [-Wunused-value] 640 | objtype == 0; | ~~~~~~~~^~~~
1 parent 2a6f9b8 commit e54a823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/samples/gu/spharm/spharm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ void SpharmGenTest(int rendermode)
637637
//objtype = 6; // make sure we end up back in same spot
638638
} break;
639639
default: // none found, so move to next one, and trigger re-gen
640-
objtype == 0;
640+
objtype = 0;
641641
inited = 0;
642642
break;
643643
}

0 commit comments

Comments
 (0)