Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
2bb498a4
Commit
2bb498a4
authored
Jun 21, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jun 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard.c: fix another cppcheck finding
[Keyboard.c:559]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
parent
5be6d271
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+2
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
2bb498a4
...
@@ -555,8 +555,9 @@ void nxagentChangeKeyboardControl(DeviceIntPtr pDev, KeybdCtrl *ctrl)
...
@@ -555,8 +555,9 @@ void nxagentChangeKeyboardControl(DeviceIntPtr pDev, KeybdCtrl *ctrl)
for
(
int
i
=
1
;
i
<=
32
;
i
++
)
for
(
int
i
=
1
;
i
<=
32
;
i
++
)
{
{
unsigned
int
mask
=
(
unsigned
int
)
1
<<
(
i
-
1
);
values
.
led
=
i
;
values
.
led
=
i
;
values
.
led_mode
=
(
ctrl
->
leds
&
(
1
<<
(
i
-
1
))
)
?
LedModeOn
:
LedModeOff
;
values
.
led_mode
=
(
ctrl
->
leds
&
mask
)
?
LedModeOn
:
LedModeOff
;
XChangeKeyboardControl
(
nxagentDisplay
,
value_mask
,
&
values
);
XChangeKeyboardControl
(
nxagentDisplay
,
value_mask
,
&
values
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment