Skip to content
Browse files

Resolve some VC10 build warnings.

  • Loading branch information...
1 parent bf8b17a commit 0d97a732d7e2817a9685ad667e816a2fa3994a92 @nigels-com nigels-com committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 examples/dreamtorus/src/render.cpp
  2. +2 −2 examples/dreamtorus/win32/minimal.cpp
View
2 examples/dreamtorus/src/render.cpp
@@ -70,7 +70,7 @@ static void drawAnObject()
Torus t( 0.7f, 0.2f );
int I = 30;
int J = 30;
- glColor3f( 0.8, 0.8, 0.8 );
+ glColor3f( 0.8f, 0.8f, 0.8f );
for(int j = 0; j < J / 2 - 1; j++)
{
float v0 = (j+0.0f)/(J-1.0f);
View
4 examples/dreamtorus/win32/minimal.cpp
@@ -41,7 +41,7 @@ For more information, please refer to <http://unlicense.org/>
#include <cstdlib>
using namespace std;
-LONG WINAPI
+LRESULT WINAPI
WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
static PAINTSTRUCT ps;
@@ -182,5 +182,5 @@ WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst, LPSTR lpszCmdLine, int
wglDeleteContext(hRC);
DestroyWindow(hWnd);
- return msg.wParam;
+ return (int) msg.wParam;
}

0 comments on commit 0d97a73

Please sign in to comment.
Something went wrong with that request. Please try again.