Skip to content

Commit 96b3ff1

Browse files
committed
fix 'lvalue required as left operand of assignment' errors
1 parent f606e62 commit 96b3ff1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sound_aix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ static void play(void *b, int i)
9393
while (i) {
9494
if ((j = write(audio_fd, b, i)) > 0) {
9595
i -= j;
96-
(char *)b += j;
96+
b = (char *)b + j;
9797
} else
9898
break;
99-
};
99+
}
100100
}
101101

102102
static void deinit(void)

src/sound_hpux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void play(void *b, int i)
116116
while (i) {
117117
if ((j = write(audio_fd, b, i)) > 0) {
118118
i -= j;
119-
(char *)b += j;
119+
b = (char *)b + j;
120120
} else
121121
break;
122122
}

0 commit comments

Comments
 (0)