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:
Lukas Wöhrl
2016-11-17 20:41:44 -08:00
committed by Facebook Github Bot
parent 0bb2955c5c
commit 4f192481ee

View File

@@ -2173,7 +2173,7 @@ bool gPrintSkips = false;
static const char *spacer = " "; static const char *spacer = " ";
static const char *getSpacer(const unsigned long level) { static const char *getSpacer(const unsigned long level) {
const unsigned long spacerLen = strlen(spacer); const size_t spacerLen = strlen(spacer);
if (level > spacerLen) { if (level > spacerLen) {
return &spacer[0]; return &spacer[0];
} else { } else {