Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72f0783

Browse files
authored
Merge pull request #1527 from debrouxl/minor_improvements_and_fixes
Minor improvements
2 parents 011b53f + 591eb23 commit 72f0783

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

lib/libm_dbl/pow.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ double pow(double x, double y)
125125
else if (iy >= 0x3ff00000) {
126126
k = (iy>>20) - 0x3ff; /* exponent */
127127
if (k > 20) {
128-
uint32_t j = ly>>(52-k);
129-
if ((j<<(52-k)) == ly)
130-
yisint = 2 - (j&1);
128+
uint32_t j2 = ly>>(52-k);
129+
if ((j2<<(52-k)) == ly)
130+
yisint = 2 - (j2&1);
131131
} else if (ly == 0) {
132-
uint32_t j = iy>>(20-k);
133-
if ((j<<(20-k)) == iy)
134-
yisint = 2 - (j&1);
132+
uint32_t j2 = iy>>(20-k);
133+
if ((j2<<(20-k)) == (uint32_t)iy)
134+
yisint = 2 - (j2&1);
135135
}
136136
}
137137
}

main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ bool run_code_py(safe_mode_t safe_mode) {
185185
} else {
186186
new_status_color(MAIN_RUNNING);
187187

188-
const char *supported_filenames[] = STRING_LIST("code.txt", "code.py", "main.py", "main.txt");
189-
const char *double_extension_filenames[] = STRING_LIST("code.txt.py", "code.py.txt", "code.txt.txt","code.py.py",
188+
static const char *supported_filenames[] = STRING_LIST("code.txt", "code.py", "main.py", "main.txt");
189+
static const char *double_extension_filenames[] = STRING_LIST("code.txt.py", "code.py.txt", "code.txt.txt","code.py.py",
190190
"main.txt.py", "main.py.txt", "main.txt.txt","main.py.py");
191191

192192
stack_resize();

supervisor/shared/usb/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void load_serial_number(void) {
4343
uint8_t raw_id[COMMON_HAL_MCU_PROCESSOR_UID_LENGTH];
4444
common_hal_mcu_processor_get_uid(raw_id);
4545

46-
const char nibble_to_hex[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
46+
static const char nibble_to_hex[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
4747
'A', 'B', 'C', 'D', 'E', 'F'};
4848
for (int i = 0; i < COMMON_HAL_MCU_PROCESSOR_UID_LENGTH; i++) {
4949
for (int j = 0; j < 2; j++) {

0 commit comments

Comments
 (0)