Skip to content

Commit c8dc995

Browse files
committed
Merge pull request #1609 from mgreter/bugfix/compiler-issues
Bugfix/compiler issues
2 parents 1e3ee36 + b10eea1 commit c8dc995

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/debug.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#include <stdint.h>
55

6+
#ifndef UINT32_MAX
7+
#define UINT32_MAX 0xffffffffU
8+
#endif
9+
610
enum dbg_lvl_t : uint32_t {
711
NONE = 0,
812
TRIM = 1,

src/json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ static bool parse_object(const char **sp, JsonNode **out)
802802
bool parse_string(const char **sp, char **out)
803803
{
804804
const char *s = *sp;
805-
SB sb;
805+
SB sb = { 0, 0, 0};
806806
char throwaway_buffer[4];
807807
/* enough space for a UTF-8 character */
808808
char *b;

src/sass_values.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ extern "C" {
210210
v->list.tag = SASS_LIST;
211211
v->list.length = len;
212212
v->list.separator = sep;
213-
v->list.values = (union Sass_Value**) calloc(len, sizeof(union Sass_Value));
213+
v->list.values = (union Sass_Value**) calloc(len, sizeof(union Sass_Value*));
214214
if (v->list.values == 0) { free(v); return 0; }
215215
return v;
216216
}

0 commit comments

Comments
 (0)