Skip to content

Commit 9b4c3a3

Browse files
committed
Code: Explicitly convert int to bool.
* Related discussion: sass/libsass#1490.
1 parent d09c4b5 commit 9b4c3a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsass/SassInterface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace LibSassNet
5252

5353
sass_compile_data_context(ctx);
5454

55-
sassContext->ErrorStatus = sass_context_get_error_status(ctx_out);
55+
sassContext->ErrorStatus = !!sass_context_get_error_status(ctx_out);
5656
sassContext->ErrorMessage = gcnew String(sass_context_get_error_message(ctx_out));
5757
sassContext->OutputString = gcnew String(sass_context_get_output_string(ctx_out));
5858

@@ -111,7 +111,7 @@ namespace LibSassNet
111111

112112
sass_compile_file_context(ctx);
113113

114-
sassFileContext->ErrorStatus = sass_context_get_error_status(ctx_out);
114+
sassFileContext->ErrorStatus = !!sass_context_get_error_status(ctx_out);
115115
sassFileContext->ErrorMessage = gcnew String(sass_context_get_error_message(ctx_out));
116116
sassFileContext->OutputString = gcnew String(sass_context_get_output_string(ctx_out));
117117
sassFileContext->OutputSourceMap = gcnew String(sass_context_get_source_map_string(ctx_out));

0 commit comments

Comments
 (0)