Index: src/core/SkString.cpp |
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp |
index aee3de5dd84d695911a1f19f61efb64227cf49c6..a069a7e68a0c5dbc31e788771834db6fb4cbd3a6 100644 |
--- a/src/core/SkString.cpp |
+++ b/src/core/SkString.cpp |
@@ -239,9 +239,7 @@ SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { |
} |
SkString::SkString(size_t len) { |
- SkASSERT(SkToU16(len) == len); // can't handle larger than 64K |
- |
- fRec = AllocRec(NULL, (U16CPU)len); |
+ fRec = AllocRec(NULL, len); |
#ifdef SK_DEBUG |
fStr = fRec->data(); |
#endif |
@@ -250,14 +248,14 @@ SkString::SkString(size_t len) { |
SkString::SkString(const char text[]) { |
size_t len = text ? strlen(text) : 0; |
- fRec = AllocRec(text, (U16CPU)len); |
+ fRec = AllocRec(text, len); |
#ifdef SK_DEBUG |
fStr = fRec->data(); |
#endif |
} |
SkString::SkString(const char text[], size_t len) { |
- fRec = AllocRec(text, (U16CPU)len); |
+ fRec = AllocRec(text, len); |
#ifdef SK_DEBUG |
fStr = fRec->data(); |
#endif |