removed exceeding "default" in switch condition
This commit is contained in:
parent
14850843c6
commit
9fee205755
|
@ -201,8 +201,8 @@ public:
|
||||||
case 2: r=p; g=v; b=t; break;
|
case 2: r=p; g=v; b=t; break;
|
||||||
case 3: r=p; g=q; b=v; break;
|
case 3: r=p; g=q; b=v; break;
|
||||||
case 4: r=t; g=p; b=v; break;
|
case 4: r=t; g=p; b=v; break;
|
||||||
default:
|
|
||||||
case 5: r=v; g=p; b=q; break;
|
case 5: r=v; g=p; b=q; break;
|
||||||
|
default: r=0;g=0;b=0; assert(0);break;
|
||||||
}
|
}
|
||||||
(*this)[0]=(unsigned char)(255*r);
|
(*this)[0]=(unsigned char)(255*r);
|
||||||
(*this)[1]=(unsigned char)(255*g);
|
(*this)[1]=(unsigned char)(255*g);
|
||||||
|
|
Loading…
Reference in New Issue