Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

add an int() to make the i/4 be a interger rather than a float #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lkcp
Copy link

@lkcp lkcp commented Dec 7, 2020

In python3, a integer divide another interger will generate a float , in "aes.py" , line 58, line 83, if we don not add an int to it ,there will be a TypeError: list indices must be integers or slices, not float

@L3odr0id
Copy link

L3odr0id commented Feb 8, 2021

In my pull-request, I already proposed a solution to the same problem. But this repository seems to be dead

@Morris-Wei
Copy link

Another more elegant way is
matrix[i // 4].append(byte)

@L3odr0id
Copy link

L3odr0id commented Oct 23, 2021

Another more elegant way is matrix[i // 4].append(byte)

Yeah, I did exactly the same thing in #8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants