Procházet zdrojové kódy

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

pull/5437/head
Kivi před 3 dny
odevzdal GitHub
rodič
revize
ddb827fb6f
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: B5690EEEBB952194
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      src/rtext.c

+ 1
- 1
src/rtext.c Zobrazit soubor

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

Načítá se…
Zrušit
Uložit