Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
fix bug when parsing HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jun 5, 2017
1 parent 13dfdb3 commit acf0c86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dep/extern/emyg-dtoa/emyg-dtoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ static inline DiyFp DiyFp_multiply(const DiyFp lhs, const DiyFp rhs) {
}

static inline DiyFp Normalize(const DiyFp lhs) {
#if defined(_MSC_VER) && defined(_M_AMD64)
#if defined(_MSC_VER) && defined(_M_AMD64) && !defined(__clang__)
unsigned long index;
_BitScanReverse64(&index, lhs.f);
return DiyFp_from_parts(lhs.f << (63 - index), lhs.e - (63 - index));
#elif defined(__GNUC__)
#elif defined(__GNUC__) && !defined(_MSC_VER)
int s = __builtin_clzll(lhs.f);
return DiyFp_from_parts(lhs.f << s, lhs.e - s);
#else
Expand All @@ -140,7 +140,7 @@ static inline DiyFp Normalize(const DiyFp lhs) {
}

static inline DiyFp NormalizeBoundary(const DiyFp lhs) {
#if defined(_MSC_VER) && defined(_M_AMD64)
#if defined(_MSC_VER) && defined(_M_AMD64) && !defined(__clang__)
unsigned long index;
_BitScanReverse64(&index, lhs.f);
return DiyFp_from_parts(lhs.f << (63 - index), lhs.e - (63 - index));
Expand Down
6 changes: 4 additions & 2 deletions lib/table/head.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ static const char *headFlagsLabels[] = {"baselineAtY_0",
"fontIsLossless",
"fontIsConverted",
"optimizedForCleartype",
"lastResortFont"};
static const char *macStyleLabels[] = {"bold", "italic", "underline", "outline", "shadow", "condensed", "extended"};
"lastResortFont",
NULL};
static const char *macStyleLabels[] = {"bold", "italic", "underline", "outline",
"shadow", "condensed", "extended", NULL};

void otfcc_dumpHead(const table_head *table, json_value *root, const otfcc_Options *options) {
if (!table) return;
Expand Down
2 changes: 1 addition & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "dep/premake-modules/ninja"

MAIN_VER = '0'
SECONDARY_VER = '7'
PATCH_VER = '1'
PATCH_VER = '2'

function cbuildoptions()
-- Windows
Expand Down

0 comments on commit acf0c86

Please sign in to comment.