summaryrefslogtreecommitdiffstats
path: root/generic/tclAssembly.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-18 12:51:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-18 12:51:30 (GMT)
commitaf7fa225c1d0ec592c7af29ead5922f45c1c15fb (patch)
tree3582411900a7dd47db3f96290226a1dea37804e4 /generic/tclAssembly.c
parent27c27e941a08c8ea873a5de4333a498788a22c33 (diff)
downloadtcl-af7fa225c1d0ec592c7af29ead5922f45c1c15fb.zip
tcl-af7fa225c1d0ec592c7af29ead5922f45c1c15fb.tar.gz
tcl-af7fa225c1d0ec592c7af29ead5922f45c1c15fb.tar.bz2
More uppercase HEX representations in source-code.
Diffstat (limited to 'generic/tclAssembly.c')
-rw-r--r--generic/tclAssembly.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c
index 15e36ac..d154bcf 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -663,7 +663,7 @@ BBEmitOpcode(
/* Compilation environment */
BasicBlock* bbPtr = assemEnvPtr->curr_bb;
/* Current basic block */
- int op = TalInstructionTable[tblIdx].tclInstCode & 0xff;
+ int op = TalInstructionTable[tblIdx].tclInstCode & 0xFF;
/*
* If this is the first instruction in a basic block, record its line
@@ -725,13 +725,13 @@ BBEmitInst1or4(
/* Current basic block */
int op = TalInstructionTable[tblIdx].tclInstCode;
- if (param <= 0xff) {
+ if (param <= 0xFF) {
op >>= 8;
} else {
- op &= 0xff;
+ op &= 0xFF;
}
TclEmitInt1(op, envPtr);
- if (param <= 0xff) {
+ if (param <= 0xFF) {
TclEmitInt1(param, envPtr);
} else {
TclEmitInt4(param, envPtr);
@@ -2224,7 +2224,7 @@ GetIntegerOperand(
* TCL_ERROR (with an appropriate error message) if the parse fails.
*
* Side effects:
- * Stores the list index at '*index'. Values between -1 and 0x7fffffff
+ * Stores the list index at '*index'. Values between -1 and 0x7FFFFFFF
* have their natural meaning; values between -2 and -0x80000000
* represent 'end-2-N'.
*
@@ -2387,7 +2387,7 @@ CheckOneByte(
{
Tcl_Obj* result; /* Error message */
- if (value < 0 || value > 0xff) {
+ if (value < 0 || value > 0xFF) {
result = Tcl_NewStringObj("operand does not fit in one byte", -1);
Tcl_SetObjResult(interp, result);
Tcl_SetErrorCode(interp, "TCL", "ASSEM", "1BYTE", NULL);
@@ -2422,7 +2422,7 @@ CheckSignedOneByte(
{
Tcl_Obj* result; /* Error message */
- if (value > 0x7f || value < -0x80) {
+ if (value > 0x7F || value < -0x80) {
result = Tcl_NewStringObj("operand does not fit in one byte", -1);
Tcl_SetObjResult(interp, result);
Tcl_SetErrorCode(interp, "TCL", "ASSEM", "1BYTE", NULL);
@@ -2836,7 +2836,7 @@ CalculateJumpRelocations(
if (bbPtr->flags & BB_JUMP1) {
offset = jumpTarget->startOffset
- (bbPtr->jumpOffset + motion);
- if (offset < -0x80 || offset > 0x7f) {
+ if (offset < -0x80 || offset > 0x7F) {
opcode = TclGetUInt1AtPtr(envPtr->codeStart
+ bbPtr->jumpOffset);
++opcode;