Fix some signed/unsigned issues
This commit is contained in:
parent
4697dd4c06
commit
31c07ba434
@ -71,7 +71,7 @@ serial_send(char out) {
|
||||
|
||||
void
|
||||
serial_string(char * out) {
|
||||
for (int i = 0; i < strlen(out); ++i) {
|
||||
for (uint32_t i = 0; i < strlen(out); ++i) {
|
||||
serial_send(out[i]);
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ static int read(int fd, char * ptr, int len) {
|
||||
IRQ_ON;
|
||||
kgets(ptr, len);
|
||||
IRQ_OFF;
|
||||
if (strlen(ptr) < len) {
|
||||
if (strlen(ptr) < (uint32_t)len) {
|
||||
int j = strlen(ptr);
|
||||
ptr[j] = '\n';
|
||||
ptr[j+1] = '\0';
|
||||
|
@ -117,7 +117,7 @@ fork() {
|
||||
new_task->heap = current_task->heap;
|
||||
new_task->heap_a = current_task->heap_a;
|
||||
new_task->image_size = current_task->image_size;
|
||||
for (uint32_t i = 0; i <= strlen(current_task->wd); ++i) {
|
||||
for (uint32_t i = 0; i <= strlen((const char *)current_task->wd); ++i) {
|
||||
new_task->wd[i] = current_task->wd[i];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user