Replace magic -3 with proper consonstant var
Merge pull request #3102 from S124568/fix-magic-constant

[master] Replace magic -3 with proper consonstant var