Skip to content

Commit 88ecb3f

Browse files
committed
fix sa
1 parent a91c825 commit 88ecb3f

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

components/doom/src/doom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ extern "C" {
279279

280280
if (haveSFX) {
281281
int16_t *audioBuffer = (int16_t *)mixbuffer;
282-
int16_t *audioBufferEnd = audioBuffer + AUDIO_BUFFER_LENGTH;
282+
const int16_t *audioBufferEnd = audioBuffer + AUDIO_BUFFER_LENGTH;
283283
while (audioBuffer < audioBufferEnd) {
284284
int totalSample = 0;
285285
int totalSources = 0;

components/msx/src/msx.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,6 @@ void TrashMachine(void)
274274
void SetColor(byte N, byte R, byte G, byte B)
275275
{
276276
uint16_t color = make_color(R, G, B);
277-
// color = (color >> 8) | (color << 8);
278-
color = color;
279277
if (N)
280278
XPal[N] = color;
281279
else

components/pool_allocator/include/pool_allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern "C" {
1616

1717
void pool_create(void* region, size_t size);
1818
void pool_destroy();
19-
int pool_contains(void* ptr);
19+
int pool_contains(const void* ptr);
2020
void* pool_alloc(size_t size);
2121
void pool_free(void* ptr);
2222

components/pool_allocator/src/pool_allocator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void pool_create(void* mem, size_t size) {
2828
free_list->next = NULL;
2929
}
3030

31-
int pool_contains(void* ptr) {
31+
int pool_contains(const void* ptr) {
3232
return (ptr >= memory_pool && ptr < memory_pool + memory_pool_size);
3333
}
3434

components/shared_memory/src/shared_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void* shared_mem_allocate(const shared_mem_request_t* request) {
6969
}
7070

7171
void shared_mem_clear(void) {
72-
printf("Num bytes allocated: %d\n", current_offset_);
72+
printf("Num bytes allocated: %d\n", (int)current_offset_);
7373
// TODO: Use SIMD-accelerated memset from ESP32s3 vector instructions
7474
memset(memory_pool_, 0, TOTAL_MEMORY_SIZE);
7575
current_offset_ = 0;

main/cart.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class Cart {
284284
return menu_->get_selected_slot();
285285
}
286286

287-
virtual std::string get_save_path(bool bypass_exist_check=false) const {
287+
std::string get_save_path(bool bypass_exist_check=false) const {
288288
namespace fs = std::filesystem;
289289
auto save_path =
290290
savedir_ + "/" +
@@ -297,15 +297,15 @@ class Cart {
297297
return "";
298298
}
299299

300-
virtual std::string get_paused_image_path() const {
300+
std::string get_paused_image_path() const {
301301
namespace fs = std::filesystem;
302302
auto save_path =
303303
savedir_ + "/paused" +
304304
get_screenshot_extension();
305305
return save_path;
306306
}
307307

308-
virtual std::string get_screenshot_path(bool bypass_exist_check=false) const {
308+
std::string get_screenshot_path(bool bypass_exist_check=false) const {
309309
auto save_path = get_save_path(bypass_exist_check);
310310
if (!save_path.empty()) {
311311
return save_path + get_screenshot_extension();

0 commit comments

Comments
 (0)