File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,11 @@ namespace Sass {
166
166
String_Constant* s = ARG (" $string" , String_Constant);
167
167
double start_at = ARGVAL (" $start-at" );
168
168
double end_at = ARGVAL (" $end-at" );
169
+
170
+ if (start_at != (int )start_at) {
171
+ error (" $start-at: " + std::to_string (start_at) + " is not an int" , pstate, traces);
172
+ }
173
+
169
174
String_Quoted* ss = Cast<String_Quoted>(s);
170
175
171
176
std::string str (s->value ());
@@ -176,6 +181,10 @@ namespace Sass {
176
181
end_at = -1 ;
177
182
}
178
183
184
+ if (end_at != (int )end_at) {
185
+ error (" $end-at: " + std::to_string (end_at) + " is not an int" , pstate, traces);
186
+ }
187
+
179
188
if (end_at == 0 || (end_at + size) < 0 ) {
180
189
if (ss && ss->quote_mark ()) newstr = quote (" " );
181
190
return SASS_MEMORY_NEW (String_Quoted, pstate, newstr);
You can’t perform that action at this time.
0 commit comments