Skip to content

Conversation

@B3none
Copy link
Contributor

@B3none B3none commented Mar 26, 2019

Changes:

  • Use the sizeof() function to declare the size of the for loops as opposed to hard-coding the value because it feels cleaner to do it that way.
  • Dynamically pad the variables storing multiple values.

@Headline
Copy link
Member

Good catch, thanks for this.

I think we could go a step further and remove the hard coded 1st dim size.

char[7][] ... -> char[][] ...

Copy link
Member

@Headline Headline left a comment

Choose a reason for hiding this comment

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

Thanks!

Gonna wait for another set of eyes before it get's pulled in

@B3none B3none changed the title Switched to sizeof instead of hard-coding for loop size SQL Admin Manager refinements and standardisation Mar 26, 2019
Copy link

@maximsmol maximsmol left a comment

Choose a reason for hiding this comment

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

Looks good to me too :P

#define SCHEMA_UPGRADE_1 1409

int current_version[4] = {1, 0, 0, CURRENT_SCHEMA_VERSION};
int current_version[] = {1, 0, 0, CURRENT_SCHEMA_VERSION};
Copy link

@MitchDizzle MitchDizzle Apr 6, 2019

Choose a reason for hiding this comment

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

Weird design question but why is it '1.0.0.%VERSION%" why not just the version without the prefix of '1.0.0.'?
(I know this probably isn't the right place to ask this either.)

@KyleSanderson KyleSanderson merged commit 8f05274 into alliedmodders:master Apr 6, 2019
@KyleSanderson
Copy link
Member

Thank you.

@B3none B3none deleted the patch-1 branch April 6, 2019 18:48
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.

5 participants