diff --git a/src/pystencils/types/types.py b/src/pystencils/types/types.py
index 8e51f939705fa77ba5b543af8417890bf192f819..1e9c0f710514204321f7523e3801b9d5389a5a37 100644
--- a/src/pystencils/types/types.py
+++ b/src/pystencils/types/types.py
@@ -484,7 +484,8 @@ class PsIntegerType(PsScalarType, ABC):
             raise PsTypeError(f"Given value {value} is not of required type {np_dtype}")
         unsigned_suffix = "" if self.signed else "u"
         #   TODO: cast literal to correct type?
-        return str(value) + unsigned_suffix
+        long_suffix = "" if self._width <= 32 else "l"
+        return str(value) + unsigned_suffix + long_suffix
 
     def create_constant(self, value: Any) -> Any:
         np_type = self.NUMPY_TYPES[self._width]