Fix compilation warning

Assigning id to integer value.
Merge pull request #743 from denivip/fix-compilation-warning

Fix compilation warning