simplify
authorMatthias Braun <matze@braunis.de>
Wed, 3 Sep 2008 12:43:25 +0000 (12:43 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 3 Sep 2008 12:43:25 +0000 (12:43 +0000)
[r21665]

ir/be/test/fehler147.c

index 0ab53fd..de69b5f 100644 (file)
@@ -6,12 +6,6 @@ void foo(unsigned char *colors) {
        int v;
        float glow = g;
 
-       if (glow < 0) {
-               glow = 0;
-       } else if(glow > 1) {
-               glow = 1;
-       }
-
        v = myftol(255*glow);
        colors[0] = colors[1] = colors[2] = v;
 }