Skip to content

Commit c45d0cc

Browse files
committed
Remove unused local variables from patch functions
1 parent b036772 commit c45d0cc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Python/jit.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ set_bits(uint32_t *loc, uint8_t loc_start, uint64_t value, uint8_t value_start,
202202
void
203203
patch_32(unsigned char *location, uint64_t value)
204204
{
205-
uint32_t *loc32 = (uint32_t *)location;
206205
// Check that we're not out of range of 32 unsigned bits:
207206
assert(value < (1ULL << 32));
208207
uint32_t final_value = (uint32_t)value;
@@ -213,7 +212,6 @@ patch_32(unsigned char *location, uint64_t value)
213212
void
214213
patch_32r(unsigned char *location, uint64_t value)
215214
{
216-
uint32_t *loc32 = (uint32_t *)location;
217215
value -= (uintptr_t)location;
218216
// Check that we're not out of range of 32 signed bits:
219217
assert((int64_t)value >= -(1LL << 31));
@@ -226,7 +224,6 @@ patch_32r(unsigned char *location, uint64_t value)
226224
void
227225
patch_64(unsigned char *location, uint64_t value)
228226
{
229-
uint64_t *loc64 = (uint64_t *)location;
230227
memcpy(location, &value, sizeof(value));
231228
}
232229

0 commit comments

Comments
 (0)