You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/12/15 13:01:48 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #4999: sched_note: change uint32_t nbi_module into uint8_t array

xiaoxiang781216 commented on a change in pull request #4999:
URL: https://github.com/apache/incubator-nuttx/pull/4999#discussion_r769604209



##########
File path: include/nuttx/sched_note.h
##########
@@ -336,7 +345,7 @@ struct note_string_s
 struct note_binary_s
 {
   struct note_common_s nbi_cmn; /* Common note parameters */
-  uint32_t nbi_module;          /* Module number */
+  uint8_t  nbi_module[4];       /* Module number */

Review comment:
       Another reason is to ensure that the saved data can be parsed by the machine with the different endian.




-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org