We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77cdab7 commit e497f4fCopy full SHA for e497f4f
src/functions.cpp
@@ -318,16 +318,14 @@ namespace Sass {
318
if (
319
special_number(Cast<String_Constant>(env["$alpha"]))
320
) {
321
- return SASS_MEMORY_NEW(String_Constant, pstate, "rgba("
322
- + std::to_string((int)c_arg->r())
323
- + ", "
324
- + std::to_string((int)c_arg->g())
325
326
- + std::to_string((int)c_arg->b())
327
328
- + env["$alpha"]->to_string()
329
- + ")"
330
- );
+ std::stringstream strm;
+ strm << "rgba("
+ << (int)c_arg->r() << ", "
+ << (int)c_arg->g() << ", "
+ << (int)c_arg->b() << ", "
+ << env["$alpha"]->to_string()
+ << ")";
+ return SASS_MEMORY_NEW(String_Constant, pstate, strm.str());
331
}
332
333
Color_Ptr new_c = SASS_MEMORY_COPY(c_arg);
0 commit comments