projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ff2f0f
)
pp.c: White-space only
author
Karl Williamson
<public@khwilliamson.com>
Mon, 18 Mar 2013 17:45:06 +0000
(11:45 -0600)
committer
Karl Williamson
<public@khwilliamson.com>
Thu, 29 Aug 2013 15:56:04 +0000
(09:56 -0600)
Make a ternary operation more clear
pp.c
patch
|
blob
|
history
diff --git
a/pp.c
b/pp.c
index
111012d
..
a913ec0
100644
(file)
--- a/
pp.c
+++ b/
pp.c
@@
-3319,9
+3319,9
@@
PP(pp_ord)
argsv = tmpsv;
}
- XPUSHu(DO_UTF8(argsv)
?
- utf8n_to_uvchr(s, UTF8_MAXBYTES, 0, UTF8_ALLOW_ANYUV) :
- (UV)(*s & 0xff));
+ XPUSHu(DO_UTF8(argsv)
+ ? utf8n_to_uvchr(s, UTF8_MAXBYTES, 0, UTF8_ALLOW_ANYUV)
+
:
(UV)(*s & 0xff));
RETURN;
}