summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorNikolaus Wittenstein <nikolaus.wittenstein@gmail.com>2017-02-04 03:06:43 +0100
committerNikolaus Wittenstein <nikolaus.wittenstein@gmail.com>2017-02-04 03:07:24 +0100
commit3faf06c880ef5fedb4dfaaef2bc35d75c392a076 (patch)
treedaaff3686db74e72a0a14b93ed324550021b9cb0 /keyboards
parente667e9f6da17c5551379b168cc97647b44972d10 (diff)
downloadqmk_firmware-3faf06c880ef5fedb4dfaaef2bc35d75c392a076.tar.gz
qmk_firmware-3faf06c880ef5fedb4dfaaef2bc35d75c392a076.tar.xz
Fix compile warnings in egodox robot_test_layout
Fixes the warning "right shift count >= width of type" by adding UL to the end of constants.
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/ergodox/keymaps/robot_test_layout/keymap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/ergodox/keymaps/robot_test_layout/keymap.c b/keyboards/ergodox/keymaps/robot_test_layout/keymap.c
index 480be177f..e9e2597d7 100644
--- a/keyboards/ergodox/keymaps/robot_test_layout/keymap.c
+++ b/keyboards/ergodox/keymaps/robot_test_layout/keymap.c
@@ -68,7 +68,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case RGB_FF0000:
if (record->event.pressed) {
#ifdef RGBLIGHT_ENABLE
- EZ_RGB(0xff0000);
+ EZ_RGB(0xff0000UL);
register_code(KC_1); unregister_code(KC_1);
#endif
}
@@ -77,7 +77,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case RGB_00FF00:
if (record->event.pressed) {
#ifdef RGBLIGHT_ENABLE
- EZ_RGB(0x00ff00);
+ EZ_RGB(0x00ff00UL);
register_code(KC_2); unregister_code(KC_2);
#endif
}
@@ -86,7 +86,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case RGB_0000FF:
if (record->event.pressed) {
#ifdef RGBLIGHT_ENABLE
- EZ_RGB(0x0000ff);
+ EZ_RGB(0x0000ffUL);
register_code(KC_3); unregister_code(KC_3);
#endif
}
@@ -95,7 +95,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case RGB_FFFFFF:
if (record->event.pressed) {
#ifdef RGBLIGHT_ENABLE
- EZ_RGB(0xffffff);
+ EZ_RGB(0xffffffUL);
register_code(KC_4); unregister_code(KC_4);
#endif
}