virtualx-engine/core
Rémi Verschelde 771b3c583d
Color: Fix -Wtype-limits GCC warning after refactoring
Warning from GCC 10.2.0 with `warnings=extra`:
```
./core/math/color.h: In member function 'int32_t Color::get_r8() const':
./core/typedefs.h:107:42: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
  107 | #define CLAMP(m_a, m_min, m_max) (((m_a) < (m_min)) ? (m_min) : (((m_a) > (m_max)) ? m_max : m_a))
      |                                    ~~~~~~^~~~~~~~~
./core/math/color.h:201:49: note: in expansion of macro 'CLAMP'
  201 |  _FORCE_INLINE_ int32_t get_r8() const { return CLAMP(uint32_t(r * 255.0), 0, 255); }
      |                                                 ^~~~~
```

Also some code consistency changes while at it.
2020-11-09 14:11:21 +01:00
..
config Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
crypto Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
debugger Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
error Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
input Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
io Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
math Color: Fix -Wtype-limits GCC warning after refactoring 2020-11-09 14:11:21 +01:00
object Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
os Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
string Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
templates Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
variant Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
core_bind.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
core_bind.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
core_builders.py Update AUTHORS and DONORS list 2020-08-14 00:06:51 +02:00
core_constants.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
core_constants.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
core_string_names.cpp Add ability to bind an unbind arguments to Callable. 2020-10-09 19:43:22 -03:00
core_string_names.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
register_core_types.cpp Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
register_core_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
SCsub Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
typedefs.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
version.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00