fix x86_64 build error

This commit is contained in:
Vadim Lopatin 2017-05-04 17:00:45 +03:00
parent 10602abf3c
commit ae1af989c9
1 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@ struct CSSTokenizer {
} }
/** returns true if current tokenEnd position is identifier start */ /** returns true if current tokenEnd position is identifier start */
bool isIdentStart(int p) { bool isIdentStart(size_t p) {
if (p >= src.length) if (p >= src.length)
return false; return false;
char ch = src.ptr[p]; char ch = src.ptr[p];
@ -527,7 +527,7 @@ struct CSSTokenizer {
} }
/// current chars are /* /// current chars are /*
CSSTokenType parseComment() { CSSTokenType parseComment() {
int p = tokenEnd + 2; // skip /* size_t p = tokenEnd + 2; // skip /*
while (p < src.length) { while (p < src.length) {
char ch = src.ptr[p]; char ch = src.ptr[p];
char ch2 = p + 1 < src.length ? src.ptr[p + 1] : 0; char ch2 = p + 1 < src.length ? src.ptr[p + 1] : 0;
@ -545,7 +545,7 @@ struct CSSTokenizer {
CSSTokenType parseUnicodeRangeToken() { CSSTokenType parseUnicodeRangeToken() {
unicodeRangeStart = 0; unicodeRangeStart = 0;
unicodeRangeEnd = 0; unicodeRangeEnd = 0;
int p = tokenEnd + 2; // skip U+ size_t p = tokenEnd + 2; // skip U+
// now we have hex digit or ? // now we have hex digit or ?
int hexCount = 0; int hexCount = 0;
uint hexNumber = 0; uint hexNumber = 0;