fixed minor Visual warnings
authorYann Collet <cyan@fb.com>
Fri, 12 Apr 2019 23:49:01 +0000 (16:49 -0700)
committerYann Collet <cyan@fb.com>
Fri, 12 Apr 2019 23:49:01 +0000 (16:49 -0700)
commitf8b760503445610c43cad813fb3eda29bb3fc763
treec75ffb9f4e0bbcbadaf3eb51db02b8a963cfa6c2
parent9c49e3ca07673949c58d9cffb23034ad0865fefb
fixed minor Visual warnings

since Visual 2017,
worries about potential overflow, which are actually impossible.
Replaced (c * a) by (c ? a : 0).
Will likely replaced a * by a cmov.
Probably harmless for performance.
lib/lz4.c
lib/lz4frame.c