summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorKim Kulling <[email protected]>2018-08-05 00:34:35 +0200
committerKim Kulling <[email protected]>2018-08-05 00:34:35 +0200
commitb2cac82fa0190952d59227442e56dbadfe789e51 (patch)
tree164738422e7607dce0d62e67bd079b470c9e4c5b /src/core.c
parentecf8bff4aa8b13357398e42243d1b00fd114c579 (diff)
downloadraylib-b2cac82fa0190952d59227442e56dbadfe789e51.tar.gz
raylib-b2cac82fa0190952d59227442e56dbadfe789e51.zip
Fix compiler warings in texture.c and more.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index a1a1b1f9..7363a0c1 100644
--- a/src/core.c
+++ b/src/core.c
@@ -886,7 +886,7 @@ void EndDrawing(void)
// Wait for some milliseconds...
if (frameTime < targetTime)
{
- Wait((targetTime - frameTime)*1000.0f);
+ Wait( (float)(targetTime - frameTime)*1000.0f);
currentTime = GetTime();
double extraTime = currentTime - previousTime;
@@ -2510,7 +2510,7 @@ static void SetupFramebufferSize(int displayWidth, int displayHeight)
// Initialize hi-resolution timer
static void InitTimer(void)
{
- srand(time(NULL)); // Initialize random seed
+ srand((unsigned int)time(NULL)); // Initialize random seed
#if !defined(SUPPORT_BUSY_WAIT_LOOP) && defined(_WIN32)
timeBeginPeriod(1); // Setup high-resolution timer to 1ms (granularity of 1-2 ms)