File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -1711,7 +1711,7 @@ namespace Sass {
1711
1711
}
1712
1712
// otherwise get the possible resolved color name
1713
1713
else {
1714
- int numval = r * 0x10000 + g * 0x100 + b;
1714
+ double numval = r * 0x10000 + g * 0x100 + b;
1715
1715
if (color_to_name (numval))
1716
1716
res_name = color_to_name (numval);
1717
1717
}
Original file line number Diff line number Diff line change @@ -627,11 +627,16 @@ namespace Sass {
627
627
return 0 ;
628
628
}
629
629
630
+ const char * color_to_name (const double key)
631
+ {
632
+ return color_to_name ((int )key);
633
+ }
634
+
630
635
const char * color_to_name (const Color& c)
631
636
{
632
- int key = c.r () * 0x10000
633
- + c.g () * 0x100
634
- + c.b ();
637
+ double key = c.r () * 0x10000
638
+ + c.g () * 0x100
639
+ + c.b ();
635
640
return color_to_name (key);
636
641
}
637
642
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ namespace Sass {
326
326
extern const Color* name_to_color (const std::string);
327
327
extern const char * color_to_name (const int );
328
328
extern const char * color_to_name (const Color&);
329
+ extern const char * color_to_name (const double );
329
330
330
331
}
331
332
Original file line number Diff line number Diff line change 116
116
<LinkIncremental >false</LinkIncremental >
117
117
<TargetName >sassc</TargetName >
118
118
<OutDir >$(SolutionDir)bin\</OutDir >
119
- <IntDir >$(SolutionDir)bin\obj</IntDir >
119
+ <IntDir >$(SolutionDir)bin\obj\ </IntDir >
120
120
</PropertyGroup >
121
121
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Release|x64'" >
122
122
<LinkIncremental >false</LinkIncremental >
You can’t perform that action at this time.
0 commit comments