Skip to content

Commit

Permalink
DIRECTOR: Lingo: Fix string alignment computation
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent 5db0d15 commit 4109e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/director/lingo/lingo.h
Expand Up @@ -114,7 +114,7 @@ class Lingo {

int calcStringAlignment(const char *s) {
int instLen = sizeof(inst);
int l = strlen(s); return l / instLen + (l + 1 + instLen - 1) % instLen;
int l = strlen(s); return (l + 1 + instLen - 1) / instLen;
}

public:
Expand Down

0 comments on commit 4109e85

Please sign in to comment.