Modified pointer->integer to return signed integer
Modified integer->pointer accpet maximum pointer size.