Commit fc795f89d35bd9f18b7019ef7a1caba7b6df76ae

Ozkan Sezer 2020-10-13T05:20:00

SDL_cpuinfo.h: add missing const to size parameter of SDL_SIMDRealloc() so that the declaration matches the definition.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h
index 56908d7..df3123c 100644
--- a/include/SDL_cpuinfo.h
+++ b/include/SDL_cpuinfo.h
@@ -271,7 +271,7 @@ extern DECLSPEC void * SDLCALL SDL_SIMDAlloc(const size_t len);
  * \sa SDL_SIMDAlloc
  * \sa SDL_SIMDFree
  */
-extern DECLSPEC void * SDLCALL SDL_SIMDRealloc(void *mem, size_t len);
+extern DECLSPEC void * SDLCALL SDL_SIMDRealloc(void *mem, const size_t len);
 
 /**
  * \brief Deallocate memory obtained from SDL_SIMDAlloc