Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit number of group chats to 65536. #1000

Merged
merged 1 commit into from
Jul 13, 2018
Merged

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Jul 13, 2018

By changing numchats from uint32_t to uint16_t. This is done in PGC. This
PR is making that change in master to reduce the diff in the PGC branch.

Also:

  • Inverted groupnumber_not_valid and renamed to is_groupnumber_valid.
  • Renamed realloc_groupchats to realloc_conferences and made it return bool.
  • Added setup_conference function that currently just zeroes the
    conference structure but later will initialise more values.
  • Made some i iterator variables local to the for-loop using
    for-init-decl. This is also done in PGC.

This change is Reviewable

By changing numchats from uint32_t to uint16_t. This is done in PGC. This
PR is making that change in master to reduce the diff in the PGC branch.

Also:
* Inverted groupnumber_not_valid and renamed to is_groupnumber_valid.
* Renamed realloc_groupchats to realloc_conferences and made it return bool.
* Added setup_conference function that currently just zeroes the
  conference structure but later will initialise more values.
* Made some `i` iterator variables local to the for-loop using
  for-init-decl. This is also done in PGC.
@iphydf iphydf added this to the v0.2.x milestone Jul 13, 2018
Copy link
Member

@robinlinden robinlinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong:

Reviewed 2 of 2 files at r1.
Reviewable status: 0 of 1 LGTMs obtained (waiting on @tox-user)

@iphydf iphydf merged commit 3d5fd9c into TokTok:master Jul 13, 2018
@iphydf iphydf deleted the pgc-retyping branch July 13, 2018 18:52
@iphydf iphydf modified the milestones: v0.2.x, v0.2.4 Jul 16, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants