removed exceeding "default" in switch condition

This commit is contained in:
ganovelli 2010-01-16 15:33:07 +00:00
parent 14850843c6
commit 9fee205755
1 changed files with 1 additions and 1 deletions

View File

@ -201,8 +201,8 @@ public:
case 2: r=p; g=v; b=t; break;
case 3: r=p; g=q; b=v; break;
case 4: r=t; g=p; b=v; break;
default:
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)[1]=(unsigned char)(255*g);