Skip to content

Commit edff617

Browse files
author
Aaron Leung
committed
getting the pull request to compile
1 parent 85f7b2e commit edff617

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ SOURCES = \
3131
prelexer.cpp \
3232
sass.cpp \
3333
sass_interface.cpp \
34+
sass2scss/sass2scss.cpp \
3435
source_map.cpp \
3536
to_c.cpp \
3637
to_string.cpp \

file.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace Sass {
159159
if (real_path.length() > 5) {
160160
extension = real_path.substr(real_path.length() - 5, 5);
161161
}
162-
for(int i=0; i<extension.size();++i)
162+
for(size_t i=0; i<extension.size();++i)
163163
extension[i] = tolower(extension[i]);
164164
return contents;
165165
}
@@ -182,10 +182,10 @@ namespace Sass {
182182
contents[size] = '\0';
183183
file.close();
184184
}
185-
for(int i=0; i<extension.size();++i)
185+
for(size_t i=0; i<extension.size();++i)
186186
extension[i] = tolower(extension[i]);
187187
if (extension == ".sass" && contents != 0) {
188-
char * converted = Sass::sass2scss(contents, SASS2SCSS_PRETTIFY_1);
188+
char * converted = sass2scss(contents, SASS2SCSS_PRETTIFY_1);
189189
delete[] contents; // free the indented contents
190190
return converted; // should be freed by caller
191191
} else {

0 commit comments

Comments
 (0)