Commit 513b62ae authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Cleanup: Fixed some compiler warnings

parent ea42a12e
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <string.h> #include <string.h>
#include <ogg/ogg.h> #include <ogg/ogg.h>
#include "compat.h"
#include "refbuf.h" #include "refbuf.h"
#include "format_ogg.h" #include "format_ogg.h"
#include "format_kate.h" #include "format_kate.h"
...@@ -34,7 +35,7 @@ ...@@ -34,7 +35,7 @@
typedef struct _kate_codec_tag typedef struct _kate_codec_tag
{ {
int headers_done; int headers_done;
int num_headers; size_t num_headers;
int granule_shift; int granule_shift;
ogg_int64_t last_iframe; ogg_int64_t last_iframe;
ogg_int64_t prev_granulepos; ogg_int64_t prev_granulepos;
......
...@@ -1024,7 +1024,7 @@ static enum __tokenizer_result __tokenizer_str(char **out, char **in) ...@@ -1024,7 +1024,7 @@ static enum __tokenizer_result __tokenizer_str(char **out, char **in)
o = p; o = p;
for (; (c = *p); p++) { for (; (c = *p); p++) {
if (c == '\t' || c == ' ' || c == 0x21 || (c >= 0x23 && c <= 0x5B) || (c >= 0x5D && c <= 0x7E) || (c >= 0x80 && c <= 0xFF)) { if (c == '\t' || c == ' ' || c == 0x21 || (c >= 0x23 && c <= 0x5B) || (c >= 0x5D && c <= 0x7E) || ((unsigned char)c >= 0x80)) {
*(o++) = c; *(o++) = c;
} else if (c == '\\') { } else if (c == '\\') {
p++; p++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment