Skip to content

Commit b05476f

Browse files
WYishaiValarDragon
authored andcommitted
Fix is_little_endian bug- always returns true (#19)
Authored-by: Yishai Wiesner <ywiesner@bgu.ac.il>
1 parent ad12505 commit b05476f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libff/common/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool is_little_endian()
9090
{
9191
uint64_t a = 0x12345678;
9292
unsigned char *c = (unsigned char*)(&a);
93-
return (*c = 0x78);
93+
return (*c == 0x78);
9494
}
9595

9696
std::string FORMAT(const std::string &prefix, const char* format, ...)

0 commit comments

Comments
 (0)