Skip to content

Commit

Permalink
Default precision to 10
Browse files Browse the repository at this point in the history
This lines up with Ruby Sass and Dart Sass.
Also it makes life easier in Sass Spec
  • Loading branch information
xzyfer authored Jul 26, 2018
1 parent 6a64d05 commit 43c4000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sassc.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ int main(int argc, char** argv) {
bool generate_source_map = false;
struct Sass_Options* options = sass_make_options();
sass_option_set_output_style(options, SASS_STYLE_NESTED);
sass_option_set_precision(options, 5);
sass_option_set_precision(options, 10);

int c;
size_t i;
Expand Down Expand Up @@ -323,7 +323,7 @@ int main(int argc, char** argv) {
break;
case 'p':
sass_option_set_precision(options, atoi(optarg)); // TODO: make this more robust
if (sass_option_get_precision(options) < 0) sass_option_set_precision(options, 5);
if (sass_option_get_precision(options) < 0) sass_option_set_precision(options, 10);
break;
case 'a':
sass_option_set_is_indented_syntax_src(options, true);
Expand Down

0 comments on commit 43c4000

Please sign in to comment.