Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 43c4000

Browse files
authored
Default precision to 10
This lines up with Ruby Sass and Dart Sass. Also it makes life easier in Sass Spec
1 parent 6a64d05 commit 43c4000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sassc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ int main(int argc, char** argv) {
250250
bool generate_source_map = false;
251251
struct Sass_Options* options = sass_make_options();
252252
sass_option_set_output_style(options, SASS_STYLE_NESTED);
253-
sass_option_set_precision(options, 5);
253+
sass_option_set_precision(options, 10);
254254

255255
int c;
256256
size_t i;
@@ -323,7 +323,7 @@ int main(int argc, char** argv) {
323323
break;
324324
case 'p':
325325
sass_option_set_precision(options, atoi(optarg)); // TODO: make this more robust
326-
if (sass_option_get_precision(options) < 0) sass_option_set_precision(options, 5);
326+
if (sass_option_get_precision(options) < 0) sass_option_set_precision(options, 10);
327327
break;
328328
case 'a':
329329
sass_option_set_is_indented_syntax_src(options, true);

0 commit comments

Comments
 (0)