From 9fee205755e3bc2e43ab20c8ad807dc7f640db4c Mon Sep 17 00:00:00 2001 From: ganovelli Date: Sat, 16 Jan 2010 15:33:07 +0000 Subject: [PATCH] removed exceeding "default" in switch condition --- vcg/space/color4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/space/color4.h b/vcg/space/color4.h index b312df58..c37a6a35 100644 --- a/vcg/space/color4.h +++ b/vcg/space/color4.h @@ -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);