diff options
Diffstat (limited to 'sim/igen')
-rw-r--r-- | sim/igen/ChangeLog | 6 | ||||
-rw-r--r-- | sim/igen/misc.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog index 92d7db9..9007920 100644 --- a/sim/igen/ChangeLog +++ b/sim/igen/ChangeLog @@ -1,3 +1,9 @@ +2015-04-24 David Binderman <dcb314@hotmail.com> + Nick Clifton <nickc@redhat.com> + + PR 18273 + * misc.c (a2i): Fix typos checking for uppercase letters. + 2015-04-17 Mike Frysinger <vapier@gentoo.org> * gen-engine.c (print_run_body): Change CIA_GET to CPU_PC_GET and diff --git a/sim/igen/misc.c b/sim/igen/misc.c index 71e34fb..6501352 100644 --- a/sim/igen/misc.c +++ b/sim/igen/misc.c @@ -102,7 +102,7 @@ a2i (const char *a) if (strcmp (a, "true") == 0 || strcmp (a, "TRUE") == 0) return 1; - if (strcmp (a, "false") == 0 || strcmp (a, "false") == 0) + if (strcmp (a, "false") == 0 || strcmp (a, "FALSE") == 0) return 0; if (*a == '-') @@ -118,7 +118,7 @@ a2i (const char *a) a += 2; base = 16; } - else if (a[1] == 'b' || a[1] == 'b') + else if (a[1] == 'b' || a[1] == 'B') { a += 2; base = 2; |