summaryrefslogtreecommitdiff
blob: 406eed25a7ea9babe710503f73bea91d8dff4b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- Pcap.c.orig	2007-08-04 21:32:58.837581638 +0200
+++ Pcap.c	2007-08-04 21:33:36.523548516 +0200
@@ -782,9 +782,9 @@
     /* define class PcapStat */
     cPcapStat = rb_funcall(rb_cStruct, rb_intern("new"), 4,
 			   Qnil,
-			   INT2NUM(rb_intern("recv")),
-			   INT2NUM(rb_intern("drop")),
-			   INT2NUM(rb_intern("ifdrop")));
+			   ID2SYM(rb_intern("recv")),
+			   ID2SYM(rb_intern("drop")),
+			   ID2SYM(rb_intern("ifdrop")));
     rb_define_const(mPcap, "Stat", cPcapStat);
 
     /* define exception classes */