Skip to content

Commit

Permalink
make identical datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
kvedala committed Jul 2, 2020
1 parent 0f48961 commit f21f18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_euler/problem_22/sol1.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int main(int argc, char **argv)
for (i = 0; i < COUNT; i++)
#endif
{
unsigned int score = 0;
long score = 0;
/* score the alphabets in i^th name */
for (int j = 0; names[i][j] != '\0'; j++)
score += names[i][j] - 'A' +
Expand Down

0 comments on commit f21f18e

Please sign in to comment.