use size_t instead of unsigned long
Summary: Use ```size_t```instead of ```unsinged long``` as this is the "offical" return type of ```strlen```. Is VS13 ```size_t``` is defined as ```unsigned long long``` which leads to a compiler warning. Closes https://github.com/facebook/css-layout/pull/254 Reviewed By: emilsjolander Differential Revision: D4199327 Pulled By: splhack fbshipit-source-id: 5e1a91f282bf776e4d9f5806e6467dfe36c7a633
This commit is contained in:
parent
5d03ff8035
commit
1430458906
|
@ -2173,7 +2173,7 @@ bool gPrintSkips = false;
|
|||
static const char *spacer = " ";
|
||||
|
||||
static const char *getSpacer(const unsigned long level) {
|
||||
const unsigned long spacerLen = strlen(spacer);
|
||||
const size_t spacerLen = strlen(spacer);
|
||||
if (level > spacerLen) {
|
||||
return &spacer[0];
|
||||
} else {
|
||||
|
|
|
@ -2173,7 +2173,7 @@ bool gPrintSkips = false;
|
|||
static const char *spacer = " ";
|
||||
|
||||
static const char *getSpacer(const unsigned long level) {
|
||||
const unsigned long spacerLen = strlen(spacer);
|
||||
const size_t spacerLen = strlen(spacer);
|
||||
if (level > spacerLen) {
|
||||
return &spacer[0];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue