projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04c7c80
)
orcarm: OSX doesn't like comparisons against enum and int.
author
Todd Agulnick
<todd@agulnick.com>
Thu, 2 Jan 2014 00:40:00 +0000
(16:40 -0800)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 2 Jan 2014 09:03:29 +0000
(10:03 +0100)
orc/orcarm.c
patch
|
blob
|
history
diff --git
a/orc/orcarm.c
b/orc/orcarm.c
index
d60c1d9
..
e89066e
100644
(file)
--- a/
orc/orcarm.c
+++ b/
orc/orcarm.c
@@
-33,7
+33,7
@@
orc_arm_cond_name (OrcArmCond cond)
"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",
"hi", "ls", "ge", "lt", "gt", "le", "", ""
};
- if (
cond < 0 ||
cond >= 16) {
+ if (
(int)cond < 0 || (int)
cond >= 16) {
return "ERROR";
}
return cond_names[cond&0xf];