This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 26168
Collapse All | Expand All

(-)IOUtils.java.old (-6 / +6 lines)
Lines 297-316 Link Here
297
                return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + ch1;
297
                return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + ch1;
298
            }
298
            }
299
            case T_LONG | 0x80: {
299
            case T_LONG | 0x80: {
300
                int ch1, ch2, ch3, ch4, v_low;
300
                long ch1, ch2, ch3, ch4;
301
                long v_high;
301
                long v_low,v_high;
302
                //add by kozusznikj
302
                
303
                ch1 = inputStream.read();
303
                ch1 = inputStream.read();
304
                ch2 = inputStream.read();
304
                ch2 = inputStream.read();
305
                ch3 = inputStream.read();
305
                ch3 = inputStream.read();
306
                ch4 = inputStream.read();
306
                ch4 = inputStream.read();
307
                v_low = (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + ch1;
307
                v_low = (ch4 << 24) | (ch3 << 16) | (ch2 << 8) | ch1;
308
                ch1 = inputStream.read();
308
                ch1 = inputStream.read();
309
                ch2 = inputStream.read();
309
                ch2 = inputStream.read();
310
                ch3 = inputStream.read();
310
                ch3 = inputStream.read();
311
                ch4 = inputStream.read();
311
                ch4 = inputStream.read();
312
                v_high = (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + ch1;
312
                v_high = ((ch4 << 24) | (ch3 << 16) | (ch2 << 8) | ch1);
313
                return (v_high << 32) + v_low;
313
                return (v_high << 32) | v_low;
314
            }
314
            }
315
            default:
315
            default:
316
                throw new IOException("Unknown int format: " + t);
316
                throw new IOException("Unknown int format: " + t);

Return to bug 26168