extras/HTMLView: Fixed 64 bit issue with ids
authorJerome St-Louis <jerome@ecere.com>
Fri, 30 Aug 2013 05:47:10 +0000 (01:47 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 30 Aug 2013 05:48:19 +0000 (01:48 -0400)
extras/html/HTMLView.ec

index 6a467de..f763f16 100644 (file)
@@ -421,20 +421,20 @@ class HTMLView : Window
          switch(block.inputType)
          {
             case submit:
-               block.window = Button { this, text = block.value, position = Point { 10, 50 }, id = (int)block, NotifyClicked = ButtonClicked, isDefault = true };
+               block.window = Button { this, text = block.value, position = Point { 10, 50 }, id = (int64)block, NotifyClicked = ButtonClicked, isDefault = true };
                eInstance_IncRef(block.window);
                block.window.Create();
                block.window.cursor = ((GuiApplication)__thisModule).GetCursor(arrow);
                //if(!html.defaultButton) html.defaultButton = block.window;
                break;
             case radio:
-               block.window = Button { this, isRadio = true, position = Point { 10, 100 }, id = (int)block, NotifyClicked = ButtonClicked };
+               block.window = Button { this, isRadio = true, position = Point { 10, 100 }, id = (int64)block, NotifyClicked = ButtonClicked };
                eInstance_IncRef(block.window);
                block.window.Create();
                block.window.cursor = ((GuiApplication)__thisModule).GetCursor(arrow);
                break;
             case text:
-               block.window = EditBox { this, position = Point { 10, 20 }, id = (int)block };
+               block.window = EditBox { this, position = Point { 10, 20 }, id = (int64)block };
                eInstance_IncRef(block.window);
                block.window.Create();
                break;