Merge pull request #10 from puzrin/patch-1

Suppress `-Wconversion` warning
This commit is contained in:
Petteri Aimonen 2019-04-15 09:14:33 +03:00 committed by GitHub
commit 47a5aa74ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Fix16 {
operator fix16_t() const { return value; }
operator double() const { return fix16_to_dbl(value); }
operator float() const { return fix16_to_float(value); }
operator int16_t() const { return fix16_to_int(value); }
operator int16_t() const { return (int16_t)fix16_to_int(value); }
Fix16 & operator=(const Fix16 &rhs) { value = rhs.value; return *this; }
Fix16 & operator=(const fix16_t rhs) { value = rhs; return *this; }