| commit | 3b546caeb0a576c4d7d7f1e8d2fdfed2bb8bdeed | [log] [tgz] |
|---|---|---|
| author | synergydev <synergye@codefi.re> | Fri Oct 25 12:36:28 2013 -0700 |
| committer | synergydev <synergye@codefi.re> | Fri Oct 25 12:38:30 2013 -0700 |
| tree | 06f5ff682b7809091f39ca7c2beae8f435d741a0 | |
| parent | d5255d1de125d15afae6cfc35701a5255b5e2933 [diff] |
Fix c++11 narrowing
The best fix for these narrowing
violations is to use static casting
As an example, this change would the following for libnaio:
error: non-constant-expression cannot be narrowed from
type 'uint32_t' (aka 'unsigned int') to 'long' in initializer list
const struct timespec req = {0, ns};
^~
Change-Id: I04ed1de4497dc19772194afef3ebf8fe0c8b82bc