summaryrefslogtreecommitdiffstats
path: root/tools/gfx/window.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2018-09-17 09:18:57 -0400
committerGitHub <noreply@github.com>2018-09-17 09:18:57 -0400
commit24ad492a98dc99abfbf7523b50bbdb13274c097e (patch)
treea84e609f8bf2e5add2b5e009b42fa564149cefdd /tools/gfx/window.cpp
parent3c505c22673701339d35eb2151f01c16eb3c78c3 (diff)
Hotfix/fixing warnings (#636)
* * Remove dispose from IRInst * Use MemoryArena instead of MemoryPool * Make all IRInst not require Dtor - by having ref counted array store ptrs that need freeing * Increase block size - typically compilation is 2Mb of IR space(!) * Fix issues around StringRepresentation::equal because null has special meaning. * Don't bother to construct as String to compare StringRepresentation, just used UnownedStringSlice. * Added fromLiteral support to UnownedStringSlice and use instead of strlen version. * Use more conventional way to test StringRepresentation against a String. * Fix gcc/clang template problem with cast. * Fix warnings.
Diffstat (limited to 'tools/gfx/window.cpp')
-rw-r--r--tools/gfx/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/window.cpp b/tools/gfx/window.cpp
index d777dc8a6..8456e1ead 100644
--- a/tools/gfx/window.cpp
+++ b/tools/gfx/window.cpp
@@ -174,7 +174,7 @@ static LRESULT CALLBACK windowProc(
window = (Window*) createInfo->lpCreateParams;
window->handle = windowHandle;
- SetWindowLongPtrW(windowHandle, GWLP_USERDATA, (LONG)window);
+ SetWindowLongPtrW(windowHandle, GWLP_USERDATA, (LONG)size_t(window));
}
break;