Просмотр исходного кода

Fixed LoadCodepoints declaring a new local variable shadowing `codpoints` (#5430)

pull/5437/head
Kivi 1 день назад
committed by GitHub
Родитель
Сommit
ddb827fb6f
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      src/rtext.c

+ 1
- 1
src/rtext.c Просмотреть файл

@ -2090,7 +2090,7 @@ int *LoadCodepoints(const char *text, int *count)
int textLength = TextLength(text);
// Allocate a big enough buffer to store as many codepoints as text bytes
kt">int *codepoints = (int *)RL_CALLOC(textLength, sizeof(int));
codepoints = (int *)RL_CALLOC(textLength, sizeof(int));
int codepointSize = 0;
for (int i = 0; i < textLength; codepointCount++)

Загрузка…
Отмена
Сохранить