fix integer signedness differences

develop
Ben Lubar 2020-04-03 11:50:09 -05:00
parent 7052903f96
commit 845b53d7cd
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 1 additions and 1 deletions

@ -36,7 +36,7 @@ DFhackCExport command_result plugin_init(color_ostream &, std::vector<PluginComm
bool check_malloc_perturb() bool check_malloc_perturb()
{ {
struct T_test { struct T_test {
int32_t data[1024]; uint32_t data[1024];
}; };
auto test = new T_test; auto test = new T_test;
bool ret = (test->data[0] == 0xd2d2d2d2); bool ret = (test->data[0] == 0xd2d2d2d2);