Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

10000 as for loop condition #7

Closed
8dcc opened this issue Jul 18, 2023 · 2 comments
Closed

10000 as for loop condition #7

8dcc opened this issue Jul 18, 2023 · 2 comments

Comments

@8dcc
Copy link
Contributor

8dcc commented Jul 18, 2023

for(int i = 0; 10000; i++) {

Probably a typo: i < 10000

@8dcc 8dcc changed the title 10000 as for condition 10000 as for loop condition Jul 18, 2023
@UnkwUsr
Copy link
Owner

UnkwUsr commented Jul 18, 2023

Ah, yea, good find. It was an old piece of code, and with a fresh sight I realized that this could be done in a much simpler way. Take a look: edc2535 :D

@UnkwUsr
Copy link
Owner

UnkwUsr commented Jul 18, 2023

Any address just guaranteed to have an aligned address, so if use loop approach, it have to be truly infinite

@8dcc 8dcc closed this as completed Jul 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants