mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-05 01:16:28 +00:00
Fix warnings in visual studio (#3512)
This commit is contained in:
6
src/external/rprand.h
vendored
6
src/external/rprand.h
vendored
@@ -186,7 +186,7 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
|
||||
{
|
||||
int *sequence = NULL;
|
||||
|
||||
if (count > (abs(max - min) + 1))
|
||||
if (count > (unsigned int)(abs(max - min) + 1))
|
||||
{
|
||||
RPRAND_LOG("WARNING: Sequence count required is greater than range provided\n");
|
||||
//count = (max - min);
|
||||
@@ -198,9 +198,9 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
|
||||
int value = 0;
|
||||
bool value_is_dup = false;
|
||||
|
||||
for (int i = 0; i < count;)
|
||||
for (unsigned int i = 0; i < count;)
|
||||
{
|
||||
value = (rprand_xoshiro()%(abs(max - min) + 1)) + min;
|
||||
value = ((int)rprand_xoshiro()%(abs(max - min) + 1)) + min;
|
||||
value_is_dup = false;
|
||||
|
||||
for (int j = 0; j < i; j++)
|
||||
|
@@ -2519,7 +2519,7 @@ bool ExportAutomationEventList(AutomationEventList list, const char *fileName)
|
||||
|
||||
// Add events data
|
||||
byteCount += sprintf(txtData + byteCount, "c %i\n", list.count);
|
||||
for (int i = 0; i < list.count; i++)
|
||||
for (unsigned int i = 0; i < list.count; i++)
|
||||
{
|
||||
byteCount += snprintf(txtData + byteCount, 256, "e %i %i %i %i %i %i // Event: %s\n", list.events[i].frame, list.events[i].type,
|
||||
list.events[i].params[0], list.events[i].params[1], list.events[i].params[2], list.events[i].params[3], autoEventTypeName[list.events[i].type]);
|
||||
|
Reference in New Issue
Block a user