diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-06-01 16:58:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-01 16:58:07 -0400 |
| commit | 7a3c87b58de2683c077bd5341052c2e3cebeb048 (patch) | |
| tree | 8641667ebcfecd728bfe8b572822751fae1c55bd /source/core/slang-list.h | |
| parent | 67486ee516ddc33806003727682cbfc68ab1f726 (diff) | |
JSONValue / Container (#1864)
* #include an absolute path didn't work - because paths were taken to always be relative.
* WIP JSONWriter/JSONParser.
* Checking different Layout styles for JSON.
* Add slang-json-parser.h/.cpp
* WIP JSONValue.
* Added JSONValue::destroy/Recursive.
* Improvement to JSONValue.
* Improve text double conversion precision. Testing.
* Simplify double parsing (just use atof).
JSON comparison
More testing of conversions and start of JSONValue.
* Add <math.h> for isnan, isinf etc.
* Small improvement with object comparison.
* Fix typo in getArgsByName.
* Removed use of isnan and isinf as includes don't work on linux.
* Improve JSON unit test.
* Added asInteger/asFloat/asBool to JSONValue.
* Change comment to trigger CI build.
Diffstat (limited to 'source/core/slang-list.h')
| -rw-r--r-- | source/core/slang-list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-list.h b/source/core/slang-list.h index 08d9aa773..4420cc084 100644 --- a/source/core/slang-list.h +++ b/source/core/slang-list.h @@ -351,7 +351,7 @@ namespace Slang void growToCount(Index count) { - Index newBufferCount = Index(1) << Math::Log2Ceil(count); + Index newBufferCount = Index(1) << Math::Log2Ceil((unsigned int)count); if (m_capacity < newBufferCount) { reserve(newBufferCount); |
