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