diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-11-17 21:33:54 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-11-17 21:33:54 -0800 |
commit | 2af2524db5cad4be3773d2b4cd49254c0f0b7758 (patch) | |
tree | fa227eadddeeb52b7a77dede9b286c567db8a89d /docs/samples/save_options.cpp | |
parent | 6c2cd5210c0907313c54b25d1aee2bec93251771 (diff) |
Fix 'comparison of unsigned expression < 0 is always false' warnings
Unfortunately, some compilers don't suppress these kinds of warnings in
template instantiations; solve this by moving the responsibility for computing
negative bool to the caller.
Also since we're doing that we don't really need to convert to unsigned in the
implementation - might as well have the caller do it, which removes some type
dispatch logic and slightly reduces binary size.
Diffstat (limited to 'docs/samples/save_options.cpp')
0 files changed, 0 insertions, 0 deletions