Skip to content

Commit 26fbab4

Browse files
committed
wrap_cast fixed
1 parent 7f752c6 commit 26fbab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎source/ac.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ namespace ac {
157157
inline unsigned char wrap_cast(double d) {
158158
unsigned long x = static_cast<unsigned long>(d);
159159
if(x > 255)
160-
x = x%255;
160+
x = x%256;
161161
return static_cast<unsigned char>(x);
162162
}
163163
// get version string

0 commit comments

Comments
 (0)