We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 211f33b commit 9581c69Copy full SHA for 9581c69
vm/builtin/io.cpp
@@ -1560,20 +1560,11 @@ namespace rubinius {
1560
return cFalse;
1561
}
1562
1563
-
1564
-#define READ(type, ptr) (*((type*)(ptr)))
1565
1566
Object* FDSet::to_set(STATE) {
1567
- Object* ret;
1568
1569
- void *lptr = READ(void*, descriptor_set);
1570
- if(!lptr) {
1571
- ret = cNil;
1572
- } else {
1573
- ret = Pointer::create(state, lptr);
1574
- }
+ void *ptr = (void*)&descriptor_set;
1575
1576
- return ret;
+ return Pointer::create(state, ptr);
1577
1578
1579
}; // ends namespace rubinius
0 commit comments