Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Another unreachable warning, codingstd in jit_emit ppc

git-svn-id: https://svn.parrot.org/parrot/trunk@29242 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
commit 48d2796f3c4572e8330779c819999e945ecabfc1 1 parent 6cccedd
@NotFound NotFound authored
Showing with 5 additions and 6 deletions.
  1. +1 −1  src/jit/ppc/jit_emit.h
  2. +4 −5 src/pmc/nci.pmc
View
2  src/jit/ppc/jit_emit.h
@@ -452,7 +452,7 @@ enum { JIT_PPC_CALL, JIT_PPC_BRANCH, JIT_PPC_UBRANCH };
*/
# define jit_emit_3a(pc, opcode, D, A, B, C, type, Rc) \
- *((pc)++) = (opcode )<< 2 | (D) >> 3; \
+ *((pc)++) = (opcode)<< 2 | (D) >> 3; \
*((pc)++) = (char)((D) << 5 | (A)); \
*((pc)++) = (char)((B) << 3 | (C) >> 2); \
*((pc)++) = (char)((C) << 6 | (type) << 1 | (Rc))
View
9 src/pmc/nci.pmc
@@ -260,16 +260,15 @@ Return the arity of the NCI (the number of arugments).
*/
METHOD arity() {
Parrot_NCI * const nci_info = PARROT_NCI(SELF);
+ INTVAL arity = 0;
- if (nci_info && nci_info->func) {
- INTVAL arity = nci_info->arity;
- RETURN(INTVAL arity);
- }
+ if (nci_info && nci_info->func)
+ arity = nci_info->arity;
else
real_exception(INTERP, NULL, INVALID_OPERATION,
"You cannot get the arity of an undefined NCI.");
- RETURN(INTVAL 0);
+ RETURN(INTVAL arity);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.