This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 92ca78c  util/scfg: Support for unsigned integer types
92ca78c is described below

commit 92ca78ca89ff80d2c4831192d0ffce5f467e0dab
Author: Christopher Collins <ccoll...@apache.org>
AuthorDate: Fri Jun 12 13:57:08 2020 -0700

    util/scfg: Support for unsigned integer types
    
    When scfg was implemented, sys/config did not support unsigned integer
    types.  Support has since been added to sys/config, but scfg still
    rejects them.
    
    This commit makes scfg not reject settings with unsigned integer types.
---
 util/scfg/src/scfg.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/util/scfg/src/scfg.c b/util/scfg/src/scfg.c
index 347d5d7..3b3c76b 100644
--- a/util/scfg/src/scfg.c
+++ b/util/scfg/src/scfg.c
@@ -229,6 +229,10 @@ scfg_register(struct scfg_group *group, char *name)
         case CONF_INT16:
         case CONF_INT32:
         case CONF_INT64:
+        case CONF_UINT8:
+        case CONF_UINT16:
+        case CONF_UINT32:
+        case CONF_UINT64:
         case CONF_STRING:
         case CONF_BOOL:
             break;

Reply via email to