Переглянути джерело

structure: LinkedList2, LinkedList3: use int8_t instead of int

ambrop7 14 роки тому
батько
коміт
c1292ca540
2 змінених файлів з 4 додано та 2 видалено
  1. 2 1
      structure/LinkedList2.h
  2. 2 1
      structure/LinkedList3.h

+ 2 - 1
structure/LinkedList2.h

@@ -29,6 +29,7 @@
 #define BADVPN_STRUCTURE_LINKEDLIST2_H
 
 #include <stddef.h>
+#include <stdint.h>
 
 #include <misc/debug.h>
 
@@ -60,7 +61,7 @@ typedef struct
 typedef struct LinkedList2Iterator_t
 {
     LinkedList2 *list;
-    int dir;
+    int8_t dir;
     struct LinkedList2Node_t *e;
     struct LinkedList2Iterator_t *pi;
     struct LinkedList2Iterator_t *ni;

+ 2 - 1
structure/LinkedList3.h

@@ -30,6 +30,7 @@
 #define BADVPN_STRUCTURE_LINKEDLIST3_H
 
 #include <stddef.h>
+#include <stdint.h>
 
 #include <misc/debug.h>
 
@@ -48,7 +49,7 @@ typedef struct _LinkedList3Node {
  * Linked list iterator.
  */
 typedef struct _LinkedList3Iterator {
-    int dir;
+    int8_t dir;
     struct _LinkedList3Node *e;
     struct _LinkedList3Iterator *pi;
     struct _LinkedList3Iterator *ni;