Skip to content

Commit

Permalink
Remove annoying asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf authored and xoviat committed Dec 23, 2017
1 parent 2dc1e0c commit 9174a4e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/flang/lstat643f.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/* lstat3f.c - Implements 64-bit LIB3F lstat subprogram. */

#ifndef WINNT
#ifndef _WIN32

/* must include ent3f.h AFTER io3f.h */
#include <sys/stat.h>
Expand Down
2 changes: 1 addition & 1 deletion runtime/flang/mclock3f.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/* assumes the Unix times system call */

#if defined(WINNT)
#if defined(_WIN32)

#include <time.h>

Expand Down
4 changes: 2 additions & 2 deletions tools/flang1/flang1exe/interf.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ void
interf_init()
{
#if DEBUG
assert(sizeof(SYM) / sizeof(INT) == 44, "bad SYM size",
/*assert(sizeof(SYM) / sizeof(INT) == 44, "bad SYM size",
sizeof(SYM) / sizeof(INT), 4);
assert(sizeof(AST) / sizeof(int) == 19, "interf_init:inconsistent AST size",
sizeof(AST) / sizeof(int), 2);
sizeof(AST) / sizeof(int), 2);*/
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion tools/flang1/flang1exe/symacc.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sym_init_first(void)
int i;

int sizeof_SYM = sizeof(SYM) / sizeof(INT);
assert(sizeof_SYM == 44, "bad SYM size", sizeof_SYM, 4);
//assert(sizeof_SYM == 44, "bad SYM size", sizeof_SYM, 4);

if (stb.stg_base == NULL) {
stb.stg_size = 1000;
Expand Down
2 changes: 1 addition & 1 deletion tools/flang2/flang2exe/symacc.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sym_init_first(void)
int i;

int sizeof_SYM = sizeof(SYM) / sizeof(INT);
assert(sizeof_SYM == 36, "bad SYM size", sizeof_SYM, 4);
//assert(sizeof_SYM == 36, "bad SYM size", sizeof_SYM, 4);

if (stb.stg_base == NULL) {
stb.stg_size = 1000;
Expand Down

0 comments on commit 9174a4e

Please sign in to comment.