From 24ad492a98dc99abfbf7523b50bbdb13274c097e Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 17 Sep 2018 09:18:57 -0400 Subject: 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. --- tools/gfx/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/window.cpp') 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; -- cgit v1.2.3