Skip to content

Commit

Permalink
FIXED: delay should be a signed variable
Browse files Browse the repository at this point in the history
It worked anyway due to overflow, but it's better to not mess with dis kind of things ;)
  • Loading branch information
MonoS committed Aug 19, 2018
1 parent 5bc0add commit b749c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int32_t argc, char** argv)
return 0;
}

uint32_t delay = (uint32_t)roundf(atof(argv[3]) * PTS_MULT);
int32_t delay = (int32_t)roundf(atof(argv[3]) * PTS_MULT);
FILE* input = fopen(argv[1], "rb");
if(input == NULL){
printf("Unable to open input file!");
Expand Down

0 comments on commit b749c88

Please sign in to comment.