summaryrefslogtreecommitdiff
path: root/gf2n.h
diff options
context:
space:
mode:
Diffstat (limited to 'gf2n.h')
-rw-r--r--gf2n.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gf2n.h b/gf2n.h
index 2dd91d7d..5418377c 100644
--- a/gf2n.h
+++ b/gf2n.h
@@ -112,7 +112,7 @@ public:
byte GetByte(size_t n) const;
//! the zero polynomial will return a degree of -1
- signed int Degree() const {return BitCount()-1;}
+ signed int Degree() const {return (signed int)(BitCount()-1U);}
//! degree + 1
unsigned int CoefficientCount() const {return BitCount();}
//! return coefficient for x^i