File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ func parseParamsFromName(name string) (*Params, Error) {
372372 if err != nil {
373373 return nil , wrapErrorf (err , "Can't parse D" )
374374 }
375- if d < 0 || d >= 1 << 32 {
375+ if d < 0 || int64 ( d ) >= int64 ( 1 ) << 32 {
376376 return nil , errorf ("D out of bounds" )
377377 }
378378 ret .D = uint32 (d )
@@ -388,7 +388,7 @@ func parseParamsFromName(name string) (*Params, Error) {
388388 if err != nil {
389389 return nil , wrapErrorf (err , "Can't parse FullHeight" )
390390 }
391- if fh < 0 || fh >= 1 << 32 {
391+ if fh < 0 || int64 ( fh ) >= int64 ( 1 ) << 32 {
392392 return nil , errorf ("FullHeight out of bounds" )
393393 }
394394 ret .FullHeight = uint32 (fh )
@@ -397,7 +397,7 @@ func parseParamsFromName(name string) (*Params, Error) {
397397 if err != nil {
398398 return nil , wrapErrorf (err , "parse N" )
399399 }
400- if n < 0 || n > 1 << 32 {
400+ if n < 0 || int64 ( n ) > int64 ( 1 ) << 32 {
401401 return nil , errorf ("N out of bounds" )
402402 }
403403 ret .N = uint32 (n ) / 8
You can’t perform that action at this time.
0 commit comments