mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-12 17:35:38 +00:00
Use consistent style for pointer declarations and casts
This commit is contained in:
parent
390fe65323
commit
d7939abf42
105 changed files with 339 additions and 346 deletions
|
|
@ -535,8 +535,8 @@ void *SDL_aligned_alloc(size_t alignment, size_t size)
|
|||
Uint8 *result = NULL;
|
||||
size_t requested_size = size;
|
||||
|
||||
if (alignment < sizeof(void*)) {
|
||||
alignment = sizeof(void*);
|
||||
if (alignment < sizeof(void *)) {
|
||||
alignment = sizeof(void *);
|
||||
}
|
||||
padding = (alignment - (size % alignment));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue