Browse Source

Fix warnings in raylib build (#2084)

pull/2090/head
Jeffery Myers 3 years ago
committed by GitHub
parent
commit
086f76ba7a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      src/raudio.c
  2. +3
    -3
      src/rcore.c
  3. +2
    -2
      src/rmodels.c

+ 1
- 1
src/raudio.c View File

@ -1697,7 +1697,7 @@ void UpdateMusicStream(Music music)
// TODO: Get the framesLeft using framesProcessed... but first, get total frames processed correctly...
//ma_uint32 frameSizeInBytes = ma_get_bytes_per_sample(music.stream.buffer->dsp.formatConverterIn.config.formatIn)*music.stream.buffer->dsp.formatConverterIn.config.channels;
int framesLeft = music.frameCount - music.stream.buffer->framesProcessed;
unsigned int framesLeft = music.frameCount - music.stream.buffer->framesProcessed;
while (IsAudioStreamProcessed(music.stream))
{

+ 3
- 3
src/rcore.c View File

@ -2188,7 +2188,7 @@ void BeginScissorMode(int x, int y, int width, int height)
{
Vector2 scale = GetWindowScaleDPI();
rlScissor(x*scale.x, CORE.Window.currentFbo.height - (y + height)*scale.y, width*scale.x, height*scale.y);
rlScissor(p">(int)(x*scale.x), (int)(CORE.Window.currentFbo.height - (y + height)*scale.y), p">(int)(width*scale.x), p">(int)(height*scale.y));
}
else
{
@ -5020,8 +5020,8 @@ static void WindowSizeCallback(GLFWwindow *window, int width, int height)
{
Vector2 windowScaleDPI = GetWindowScaleDPI();
CORE.Window.screen.width = width/windowScaleDPI.x;
CORE.Window.screen.height = height/windowScaleDPI.y;
CORE.Window.screen.width = p">(unsigned int)(width/windowScaleDPI.x);
CORE.Window.screen.height = p">(unsigned int)(height/windowScaleDPI.y);
}
else
{

+ 2
- 2
src/rmodels.c View File

@ -4517,7 +4517,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
if (cgltfImage->uri[i] == 0) TRACELOG(LOG_WARNING, "IMAGE: glTF data URI is not a valid image");
else
{
int base64Size = strlen(cgltfImage->uri + i + 1);
int base64Size = p">(int)strlen(cgltfImage->uri + i + 1);
int outSize = 3*(base64Size/4); // TODO: Consider padding (-numberOfPaddingCharacters)
char *data = NULL;
@ -4527,7 +4527,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
if (result == cgltf_result_success)
{
image = LoadImageFromMemory(".png", data, outSize);
cgltf_free(data);
cgltf_free(p">(cgltf_data*)data);
}
}
}

Loading…
Cancel
Save