pkarashchenko commented on code in PR #12427:
URL: https://github.com/apache/nuttx/pull/12427#discussion_r1623199504


##########
sched/init/nx_start.c:
##########
@@ -623,7 +624,10 @@ void nx_start(void)
 
   /* Initialize the logic that determine unique process IDs. */
 
-  nxsched_npidhash() = 4;
+  static_assert(IS_POWER_OF_2(CONFIG_INITIAL_PID_LIMIT),

Review Comment:
   Can we use `#error` instead of `static_assert` in favor of portability?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to