Skip to content

Commit 49c37fd

Browse files
committed
Merge pull request #1593 from pguyot/w12/fix-codeql-warning
Add explicit cast to please CodeQL. Fix #1582 These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 3ac2a24 + a395f0e commit 49c37fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libAtomVM/context.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,10 @@ term context_get_monitor_pid(Context *ctx, uint64_t ref_ticks, bool *is_monitori
573573
if (monitor->ref_ticks == ref_ticks) {
574574
if ((monitor->monitor_obj & 0x3) == CONTEXT_MONITOR_MONITORED_PID_TAG) {
575575
*is_monitoring = false;
576-
return term_from_local_process_id(monitor->monitor_obj >> 4);
576+
return term_from_local_process_id((uint32_t) (monitor->monitor_obj >> 4));
577577
} else if ((monitor->monitor_obj & 0x3) == CONTEXT_MONITOR_MONITORING_PID_TAG) {
578578
*is_monitoring = true;
579-
return term_from_local_process_id(monitor->monitor_obj >> 4);
579+
return term_from_local_process_id((uint32_t) (monitor->monitor_obj >> 4));
580580
} else {
581581
return term_invalid_term();
582582
}

0 commit comments

Comments
 (0)