You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/23 18:52:35 UTC

[02/15] incubator-mynewt-newt git commit: MYNEWT-483 - Correctly parse syscfg int names.

MYNEWT-483 - Correctly parse syscfg int names.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/b46449ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/b46449ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/b46449ce

Branch: refs/heads/master
Commit: b46449cee030558ce4b4586d61c336652fb2a282
Parents: f7a5983
Author: Christopher Collins <cc...@apache.org>
Authored: Fri Nov 11 15:56:16 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Fri Nov 11 15:56:16 2016 -0800

----------------------------------------------------------------------
 newt/vendor/mynewt.apache.org/newt/yaml/decode.go | 2 +-
 yaml/decode.go                                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b46449ce/newt/vendor/mynewt.apache.org/newt/yaml/decode.go
----------------------------------------------------------------------
diff --git a/newt/vendor/mynewt.apache.org/newt/yaml/decode.go b/newt/vendor/mynewt.apache.org/newt/yaml/decode.go
index 8244bd6..46588fe 100644
--- a/newt/vendor/mynewt.apache.org/newt/yaml/decode.go
+++ b/newt/vendor/mynewt.apache.org/newt/yaml/decode.go
@@ -110,7 +110,7 @@ func genValue(strVal string) interface{} {
 func stringValue(value interface{}) string {
 	switch value.(type) {
 	case int:
-		return strconv.FormatInt(value.(int64), 10)
+		return strconv.FormatInt(int64(value.(int)), 10)
 
 	case bool:
 		return strconv.FormatBool(value.(bool))

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b46449ce/yaml/decode.go
----------------------------------------------------------------------
diff --git a/yaml/decode.go b/yaml/decode.go
index 8244bd6..46588fe 100644
--- a/yaml/decode.go
+++ b/yaml/decode.go
@@ -110,7 +110,7 @@ func genValue(strVal string) interface{} {
 func stringValue(value interface{}) string {
 	switch value.(type) {
 	case int:
-		return strconv.FormatInt(value.(int64), 10)
+		return strconv.FormatInt(int64(value.(int)), 10)
 
 	case bool:
 		return strconv.FormatBool(value.(bool))